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

24 commits

Author SHA1 Message Date
01e808e2e6 Fix Lua < 5.4 compiler with new preprocessor env 2021-06-17 20:18:38 +02:00
496a4ddafd Add support for macro replacement using Lua functions 2021-06-11 13:46:31 +02:00
ebd36d7103 Add macro support in preprocessor 2021-06-07 17:04:26 +02:00
7e4b46ba7d Add Lua 5.2 target 2020-12-24 17:25:28 +01:00
cecb2aea03 Lua <5.4: Only error when the variable is declared with an attribute 2020-07-04 23:42:51 +02:00
10be62a2fe Lua 5.4 support and const and close shortcut 2020-06-30 21:29:13 +02:00
1de0aafa5b Added cancheck; candran.compile, .make and .preprocess returns nil, err instead of throwing an error; can and canc error output should now be similar to Lua 2020-04-06 21:30:57 +02:00
842536b561 Add destructuring assignement 2020-01-15 20:42:27 +01:00
851e9f89d6 Added safe operators, if/while with assignement, method stubs 2019-08-27 17:07:33 +02:00
7df95abc6d Fixed using return at the end of a loop that use continue 2019-08-23 21:12:45 +02:00
91948109ca Fixed using break and continue in the same loop, added vanilla Lua 5.1 target
somehow I never encountered this before... well now there's more tests
2019-08-23 19:50:49 +02:00
98a6a87962 Added suffixable string and table litterals 2018-08-30 18:06:38 +02:00
debf0bc464 Fixed missing whitespace in some continue code generation
Also made Candran returns slightly more usefull error messages
2018-08-02 17:11:46 +02:00
4517ee110f Fix LuaJIT bit operators 2018-02-27 12:53:44 +01:00
70d3aba121 v0.6.0
* Fixed HORRIBLE parsing bugs with short functions and right assignemnt
operators
* Allowed to omit then, do and end for some statements
* Fixed hexa numbers parsing
* Run the Lua 5.3 test suite through Candran, everything that should
work worked! Yay!

Lacks tests and README
2017-08-31 19:17:34 +02:00
724249555f Added 0.5.0 tests
Also removed an error thrown when the start of an implicit push looks
like an assignment...
2017-08-25 19:57:02 +02:00
d249c353c5 0.5.0
Fixed plenty of bugs.

Tests are lacking.
2017-08-25 19:20:29 +02:00
6b95bfb698 Added push, table comprehension, fixed stuff
* Implicit returns are now implicit pushes
* Candran keywords can be used as variable name
* Better handling of continue
* Moar newlines in output
2017-08-25 17:09:52 +02:00
20e33c279e Statement expressions 2017-08-24 20:28:07 +02:00
025a55f708 Fixed assignemnt operators priority bug
accidentaly added AST dumping to canc in the process
2017-08-24 17:32:20 +02:00
c0f7934d92 Added let and continue 2017-08-23 14:06:34 +02:00
97454746b8 v0.3.1
Updated tests, added a few usefull options to #import()
2017-08-19 19:05:05 +02:00
4af2b41a0d Candran 0.3.0
* Added @ self alias
* Added short anonymous functions declaration
* Made assignment operators works in every direction, except up, down,
behind and below, because this would be hard to visualize.
* Moved files around.
* Error rewriting.
* Discover the amazing can commandline tool, which includes a fantastic°
REPL and program running abilities.
* Added functions which plagiarize Lua.
* Added 0.1.0 to the version number.
* If you still love pineapple flavored bread, don't hesitate to show
your feelings.

Also, the tests are out of date. Sad.

°: not really.
2017-08-16 22:33:44 +02:00
Reuh
2a1e293aa5 Candran 0.2
Changed a LOT. Notable changes:
* Removed decorators, as they're not that useful, unless rewriting most
Lua libraries API.
* Added functions parameters default values.
* Added Lua 5.3 stuff and building to Lua 5.1.
* Remplaced the LuaMinify parser by lua-parser. It now requires some
non-Lua dependencies (LPeg) unfortunately, but it's waaaaaay easier to
handle. Code should be adaptable to any Metalua-like AST generator
anyway.
* The generated code now look like shit, and comment are stripped,
because the parser ignore them. Oh well.
* Changed a few things in the preprocessor environment.
* Nobody will read this commit message I guess. If you did, create an
issue saying "I love pineapple flavored bread".
2017-08-06 18:45:52 +02:00