Commit Graph

22 Commits

Author SHA1 Message Date
9441a81011 Better error reporting and error handling for chunks. 2019-01-23 15:40:07 -08:00
17822c6366 Fixed an edge case with indentation 2019-01-18 20:40:18 -08:00
32b258868c Fix for parsing an indented top_block that starts with a comment and has
code after it.
2019-01-18 15:18:49 -08:00
5c96748802 Fix for formatting indented code with the format tool. 2019-01-15 17:48:35 -08:00
a7d912a33a Initial pass on updating syntax. 2018-12-18 19:30:12 -08:00
6ba84a0f50 Initial setup work for syntax version 5. 2018-12-14 17:49:46 -08:00
0d88091f8d Cleanups and codegen improvements/fixes. 2018-12-13 15:21:55 -08:00
7a7dcefc44 Added text comprehensions (in the style of the list/dict ones) 2018-11-29 14:23:17 -08:00
8e5f1b9e1e Simplifying the control flow API and deduplicating the code. 2018-11-26 16:22:04 -08:00
7f47d42040 In-progress (but working) overhaul of some elements including: function
calls, lib/thing.nom API, multi-assignments, varargs, etc.
2018-11-17 14:39:08 -08:00
5f38d73004 Now preserving hex numbers with "0xF00" -> parse -> decompile ->
"0xF00", fix for (compile error at ...)
2018-11-11 15:26:30 -08:00
9a75d25c84 Lots of fixes to the upgrading and codegen/autoformatting pipeline, also
deleted nomnom files, since they're mostly not needed anymore.
2018-11-11 15:05:56 -08:00
ed70165294 Better handling of shebangs and comments at the top of a file. 2018-11-09 17:33:04 -08:00
652c29bdef Major overhaul, splitting nomsu_compiler into nomsu_environment,
nomsu_compiler, and nomsu_decompiler. Also added comprehensions.
2018-11-08 15:24:15 -08:00
e7e84c9eda Fix for compiler not parenthesizing method targets, fix for parser not
recognizing \ line continuation, and improvements to
upgrade tool API.
2018-10-30 20:32:49 -07:00
23abab4f80 Some cleanups and fixes, made the parser more permissive of prematurely
terminated files.
2018-10-29 13:00:30 -07:00
Bruce Hill
f8cfdd0f22 Better parsing of strings and handling of non-printable characters and
tabs.
2018-09-15 15:39:57 -07:00
Bruce Hill
e22c35681f Auto-upgraded everything. 2018-09-14 19:17:16 -07:00
Bruce Hill
626b6cab79 Updated compiler to produce cool string output. 2018-09-14 15:20:07 -07:00
Bruce Hill
7c1f2dfd69 Fixes and improvements, and ported nomsu.3.peg to new tidier syntax. 2018-09-14 14:01:07 -07:00
Bruce Hill
4d48bf359d Improvements to indented text parsing and error reporting. 2018-09-13 16:02:40 -07:00
Bruce Hill
ea310306d7 Initial working version. 2018-09-12 15:32:04 -07:00