gls-cli
v0.2.0
Published
Node CLI for General Language Syntax (GLS).
Maintainers
Readme
gls-cli
Node CLI for General Language Syntax (GLS).
Usage
npm install general-language-syntax gls-cli ts-gls typescript gls-cli --global
gls --helpPass any number of filenames and/or globs (matched with glob) to the CLI to convert those files to an output -l/--language.
Input files to convert from GLS to the output language must have a .gls extension.
.ts files may also be given with -t/--tsconfig to compile to .gls files before output language conversion.
Example Usage
To convert file.gls to file.py:
gls --language Python file.glsTo convert *.ts to *.gls, then to *.java:
gls --language Java --tsconfig ./tsconfig *.tsRequires Node >=8
Development
To build from scratch, install Node.js and run the following commands:
npm install
npm install general-language-syntax ts-gls typescript --no-save
npm run verifyCheck package.json for the full list of commands.
To set up source file compiling in watch mode, use tsc -p . -w.
