alan-compile
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "alan-compile", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Compile of alan to amm and javascript", | ||
@@ -8,3 +8,3 @@ "scripts": { | ||
"build": "tsc", | ||
"prepare": "tsc && mkdir -p std && cp -r ../std/* ./std/", | ||
"prepare": "tsc && mkdir -p std && cp -r ../std/* ./std/ && npm run bundle", | ||
"bundle": "./browser/genstdlibs.js > ./browser/stdlibs.json && browserify -r alan-js-runtime -r ./browser/runtime.js:alan-runtime -r ./dist/index.js:alan-compiler > bundle.js", | ||
@@ -11,0 +11,0 @@ "clean": "rm -f bundle.js && rm -rf dist", |
@@ -1,2 +0,2 @@ | ||
# alan-compiler | ||
# alan-compile | ||
@@ -12,3 +12,3 @@ A compiler for alan to Javascript and Alan Graphcode, the [runtime](https://github.com/alantech/alan/tree/master/runtime)'s bytecode format. | ||
```sh | ||
npm install -g alan-compiler | ||
npm install -g alan-compile | ||
``` | ||
@@ -19,3 +19,3 @@ | ||
```sh | ||
alan-compiler <sourcefile> <outputfile> | ||
alan-compile <sourcefile> <outputfile> | ||
``` | ||
@@ -59,4 +59,4 @@ | ||
```js | ||
const alanCompiler = require('alan-compiler') // Browserify creates a toplevel `require` function that you can use to get the modules | ||
const helloWorld = alanCompiler('ln', 'js', ` | ||
const alanCompile = require('alan-compile') // Browserify creates a toplevel `require` function that you can use to get the modules | ||
const helloWorld = alanCompile('ln', 'js', ` | ||
import @std/app | ||
@@ -80,3 +80,3 @@ | ||
The `alan-compiler` uses [ANTLR](https://www.antlr.org/) to define the `alan` grammar and create the lexer and parser. The grammar is defined in `ln/Ln.g4` along with the autogenerated source code. | ||
`alan-compile` uses [ANTLR](https://www.antlr.org/) to define the `alan` grammar and create the lexer and parser. The grammar is defined in `ln/Ln.g4` along with the autogenerated source code. | ||
@@ -100,3 +100,3 @@ To edit the language grammar itself, you need to have `antlr4` installed: | ||
To contribute to the `alan-compiler` you need to sign a Contributor License Agreement (TODO: figure this out), Alan Technologies will retain the right to relicense this code in licenses other than AGPL 3.0 concurrently or in the future to convert to a newer license. | ||
To contribute to `alan-compile` you need to sign a Contributor License Agreement, Alan Technologies will retain the right to relicense this code in licenses other than AGPL 3.0 concurrently or in the future to convert to a newer license. | ||
@@ -103,0 +103,0 @@ ## License |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
3482743
108
67888
3