Commit graph

9 commits

Author SHA1 Message Date
Kevin Eady
593cfffb83
Add uninit, true, false keywords to grammar (#596)
* Update grammar

* Update expression handling for uninit

* update existing tests

* Add new tests

* Remove fullpath from escriptgrammar generation comment

* fix tests

* Update eScript guide

* Declare escript version 0x11

* Add core-changes

* Add `true` and `false` to grammar

* true/false implementation

* Fix existing tests

* Add new tests

* Update core changes

* add docs

* Fix BooleanValue::describe_to

* bool optimizations

* optimize uninit

* remove unused var assignments

* Update grammar for case labels for uninit, booleans

* Fix case label handling for uninit, true, false

* Tests

* Fix compiler version display v1.1700000017881393 -> v1.17

* optimize boolean binary operations

* fix unary boolean optimizer

* add boolean, uninit optimizer test

* Use new fmt lib apis

* Fix compiler warning

* really fix warning lol

* Add Executor[Module]::getParam for bools, FindSubstance test
2024-01-20 05:38:25 +01:00
Eric Swanson
303665bcd8
Add error listener, and convert lexer symbols to lowercase (#216)
Add file/ConformingCharStream - converts symbols to lowercase to match grammar

Add file/ErrorListener
2020-08-14 03:28:37 -07:00
turleypol
5f7c1cf3f5 maybe now the testdata is correct 2020-01-04 17:07:03 +01:00
turleypol
682eb1ec25 corrected testcase 2020-01-04 14:06:44 +01:00
turleypol
5b9ddb20b0 testcase for invalid chars 2020-01-04 12:59:47 +01:00
turleypol
be86e2d64a added special test 2019-09-07 17:15:10 +02:00
turleypol
72574d581b compiler can now handle files with BOM 2018-06-25 19:31:00 +02:00
turleypol
e22f037979 invalid utf8 will be assumed to be iso8859 (with the hope that this is
correct in most of the cases)
2018-06-25 19:31:00 +02:00
turleypol
6e50fcd7a2 sanitize strings during compilation
shameless copy of bodoms unicode test plus a few additions/modifications
2018-06-25 19:31:00 +02:00