62 Commits

Author SHA1 Message Date
0x4261756D
f301a663f3 Remove throwing part of tokenizerString test 2024-03-19 20:30:51 +01:00
0x4261756D
5b3da8b4b7 Merge branch 'csharp' of https://gittea.dev/0x4261756D/luaaaaah into csharp 2024-03-19 20:29:23 +01:00
0x4261756D
f1f658169e Add empty string test 2024-03-19 20:28:36 +01:00
0x4261756D
23199d37f3 Remove throwing part of tokenizerString test 2024-03-19 20:26:51 +01:00
0x4261756D
5de6233436 Update launch.json 2024-03-19 20:26:38 +01:00
0x4261756D
e89625c2e9 Throw on hex floats 2024-03-19 20:26:24 +01:00
0x4261756D
501bc9eed6 Fix crash on empty string 2024-03-19 20:25:58 +01:00
0x4261756D
a4d9e5023f Fix error message 2024-03-19 20:24:40 +01:00
0x4261756D
f310882220 Remove unnecessary setting of currentToken 2024-03-19 20:23:08 +01:00
0x4261756D
820fc7a82e Remove some unnecessary nesting in the parser 2024-02-28 19:13:17 +01:00
0x4261756D
51390b24d3 More deduplication in the tokenizer 2024-02-28 18:55:39 +01:00
0x4261756D
0c93d45dbd deduplicate some tokenizer code 2024-02-28 18:22:24 +01:00
0x4261756D
28f110e2c4 Further cut down the amount of unnecessary coderegions 2024-02-28 17:41:36 +01:00
0x4261756D
40c744119c Make regions not part of superclass StatNode
Since the majority of subclasses already has a node with the same region this can be omitted
2024-02-28 17:02:23 +01:00
0x4261756D
ef333f7d93 Throw on broken escape sequences 2024-02-21 17:43:53 +01:00
0x4261756D
e3968034ce Add more tests 2024-02-21 17:38:55 +01:00
0x4261756D
769d18f2b0 Fix SingleQuoteBackslashZ expecting to close with " 2024-02-21 17:38:46 +01:00
0x4261756D
8cbfb8b941 Add unfinished implementation for \u escape sequences
Also add a note for \x escape sequences since they are also broken
2024-02-21 17:38:18 +01:00
0x4261756D
ab4be05bf4 Ignore '!' in shebang comment 2024-02-21 17:36:59 +01:00
0x4261756D
637638d889 Implement \x escape sequences 2024-02-21 16:36:13 +01:00
0x4261756D
ad3bb57dcc Include failed count in test output 2024-02-21 16:07:57 +01:00
0x4261756D
17a8beb2b7 Don't attempt to parse empty token streams 2024-02-21 16:04:58 +01:00
0x4261756D
3d40351771 Fix being unable to parse files with other line endings 2024-02-21 16:04:35 +01:00
0x4261756D
8b30b34bd1 Fix BigComments and StringWithLongBracket swallowing an ending ']' if ']' occurred somewhere within 2024-02-21 16:04:00 +01:00
0x4261756D
04f5804dff Fix trailing comma handling in ParseFieldlist
This is pretty ugly since it checks for every token type that could follow to make it a valid field but the previous check was flat out wrong
2024-02-21 16:01:58 +01:00
0x4261756D
83b0416c03 Make hex numeral 'x' case-insensitive 2024-02-21 16:00:41 +01:00
0x4261756D
6512439ce3 Fix empty strings not having string data 2024-02-21 15:59:31 +01:00
0x4261756D
43fea86d92 Fix missing increment after parsing dotted funcname 2024-02-21 15:11:45 +01:00
0x4261756D
2b75b7d79f Add missing increment if parlist starts with varargs 2024-02-21 15:11:17 +01:00
0x4261756D
ae4a3e9993 Fix suffixexp.argsfirstarg expecting ')' instead of name after ':' 2024-02-21 15:10:37 +01:00
0x4261756D
3a6e024c9b Correctly remove last suffix when turning exp into {member, indexed} var 2024-02-21 15:09:55 +01:00
0x4261756D
c7ac2cf091 Fix labels expecting a name instead of '::' to close 2024-02-21 15:08:50 +01:00
0x4261756D
6193441621 Fix if expecting a 'then' as else starter 2024-02-21 15:08:16 +01:00
0x4261756D
fcaf1c1570 Fix parser crashing in repeat-until block 2024-02-21 15:07:37 +01:00
0x4261756D
eaba371455 Fix '&' being parsed as '=' 2024-02-21 15:07:06 +01:00
0x4261756D
424f381755 Make INumeral json serializable 2024-02-21 15:06:51 +01:00
0x4261756D
25b3dd63c5 Improve Run output 2024-02-21 15:05:32 +01:00
0x4261756D
d1b855144e Make parser nodes json serializable 2024-02-21 15:05:06 +01:00
0x4261756D
41ab249353 Rename tokenizerTests 2024-02-21 15:03:42 +01:00
0x4261756D
d23a5cd70b Test parsing 2024-02-21 13:49:23 +01:00
0x4261756D
27f2917670 Implement missing parser methods 2024-02-21 13:49:04 +01:00
0x4261756D
b7f725afee Fix crash if a block has no stats 2024-02-21 13:48:43 +01:00
0x4261756D
dd813aa624 Explicitly pass values in RetstatNode constructor 2024-02-21 13:48:02 +01:00
0x4261756D
1679fe8e6e Fix Numeral and LiteralString ExpNodes requiring two regions 2024-02-21 13:47:38 +01:00
0x4261756D
ed50d40c1c Fix SuffixexpNodes subclasses inheriting from the wrong base 2024-02-21 13:47:02 +01:00
0x4261756D
bb954e99d5 Don't use implicit usings 2024-02-21 13:45:54 +01:00
0x4261756D
02aab2e590 Start working on the parser 2024-02-01 02:20:22 +01:00
0x4261756D
049a96191c Make testing recursive 2024-01-29 18:24:24 +01:00
0x4261756D
39521fbb19 Add float lexing 2024-01-29 18:24:08 +01:00
0x4261756D
ec312b3132 Add shebang parsing (read: ignore shebang) 2024-01-29 18:23:20 +01:00