1.0.6 • Published 3 years ago

langbuild v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

LangBuild

LangBuild is a tool to create programming languages with Node.js

  • OOP support
  • More Analyser control

Example

const lb = require("langbuild")

const language = new lb.Language("Language", "def")

language.analyser = new lb.Analyser(language, {console: {sub: {log: {fnc: function(args) {console.log(args.join(" "))}}}}}, [new lb.Rule("variableRule", {openers: ["%"], closers: ["%"], active: true}), new lb.Rule("commentRule", {openers: ["--"], closers: ["-"], active: true})])

language.analyser.analyse("./program.lang").then((args) => {
    console.log("Success!")
}).catch((err) => {
    console.error(err)
})
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago