1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00

Now in latest release

This commit is contained in:
Étienne Fildadut 2019-08-11 17:24:53 +02:00
parent ff2f3a8feb
commit f1da477b5a

View file

@ -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 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.
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.
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 :
@ -352,7 +352,7 @@ The library can be used standalone through the ```canc``` and ```can``` utility:
````canc -parse foo.can````
checks foo.can for syntaxic errors. _(not in latest release)_
checks foo.can for syntaxic errors.
* ```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.
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
Candran can also be used as a Lua library. For example,