mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 17:59:30 +00:00
Now in latest release
This commit is contained in:
parent
ff2f3a8feb
commit
f1da477b5a
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -324,17 +324,17 @@ The library can be used standalone through the ```canc``` and ```can``` utility:
|
||||||
|
|
||||||
You can choose to use another directory where files should be written using the ```dest=destinationDirectory``` argument.
|
You can choose to use another directory where files should be written using the ```dest=destinationDirectory``` argument.
|
||||||
|
|
||||||
You can choose the output filename using ```out=filename```. By default, compiled files have the same name as their input file, but with a ```.lua``` extension. _(not in latest release)_
|
You can choose the output filename using ```out=filename```. By default, compiled files have the same name as their input file, but with a ```.lua``` extension.
|
||||||
|
|
||||||
```canc``` can write to the standard output instead of creating files using the ```-print``` argument.
|
```canc``` can write to the standard output instead of creating files using the ```-print``` argument.
|
||||||
|
|
||||||
You can choose to run only the preprocessor or compile using the ```-preprocess``` and ```-compile``` flags.
|
You can choose to run only the preprocessor or compile using the ```-preprocess``` and ```-compile``` flags.
|
||||||
|
|
||||||
You can choose to only parse the file and check it for syntaxic errors using the ```-parse``` flag. Errors will be printed to stderr in a similar format to ```luac -p```. _(not in latest release)_
|
You can choose to only parse the file and check it for syntaxic errors using the ```-parse``` flag. Errors will be printed to stderr in a similar format to ```luac -p```.
|
||||||
|
|
||||||
The ```-ast``` flag is also available for debugging, and will disable preprocessing, compiling and file writing, and instead directly dump the AST generated from the input file(s) to stdout.
|
The ```-ast``` flag is also available for debugging, and will disable preprocessing, compiling and file writing, and instead directly dump the AST generated from the input file(s) to stdout.
|
||||||
|
|
||||||
Instead of providing filenames, you can use ```-``` to read from standard input. _(not in latest release)_
|
Instead of providing filenames, you can use ```-``` to read from standard input.
|
||||||
|
|
||||||
* example uses :
|
* example uses :
|
||||||
|
|
||||||
|
|
@ -352,7 +352,7 @@ The library can be used standalone through the ```canc``` and ```can``` utility:
|
||||||
|
|
||||||
````canc -parse foo.can````
|
````canc -parse foo.can````
|
||||||
|
|
||||||
checks foo.can for syntaxic errors. _(not in latest release)_
|
checks foo.can for syntaxic errors.
|
||||||
|
|
||||||
* ```can```
|
* ```can```
|
||||||
|
|
||||||
|
|
@ -366,7 +366,7 @@ The library can be used standalone through the ```canc``` and ```can``` utility:
|
||||||
|
|
||||||
This command will use error rewriting if enabled.
|
This command will use error rewriting if enabled.
|
||||||
|
|
||||||
Instead of providing a filename, you can use ```-``` to read from standard input. _(not in latest release)_
|
Instead of providing a filename, you can use ```-``` to read from standard input.
|
||||||
|
|
||||||
### Library usage
|
### Library usage
|
||||||
Candran can also be used as a Lua library. For example,
|
Candran can also be used as a Lua library. For example,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue