Commit Graph

31 Commits

Author SHA1 Message Date
Hackerpilot 2fb46a82c9 Use valid enum syntax instead of invalid alias syntax 2014-02-14 14:23:27 -08:00
Andrej Mitrovic 236403ab31 Inject a private _tok template to allow user-defined tok() template to have an arbitrary name. 2014-02-13 10:32:27 +01:00
Hackerpilot 35171621d8 Merge pull request #104 from AndrejMitrovic/FixTokenID
Fix TokenID and tokenStringRepresentation implementations
2014-02-11 10:12:28 -08:00
Hackerpilot aa8a3754de Merge pull request #102 from AndrejMitrovic/TokenAPIChange
Change Lexer API
2014-02-11 10:06:22 -08:00
Andrej Mitrovic fdad20c7c5 Fix TokenID implementation: The order of tokens in the static if branches was wrong. Using a simplified uniform array avoids these errors. Fix tokenStringRepresentation, it had the wrong order of comparisons just like TokenID. 2014-02-11 12:50:43 +01:00
Andrej Mitrovic ab067e5732 Change Lexer API: Remove IDType parameter, it can be retrieved via the Token parameter. Re-arrange parameters so tokens are in order and can be used as a typetuple through multiple other templated functions. 2014-02-11 12:17:40 +01:00
Andrej Mitrovic e6109eebdc TokenId should take tokens length + 1 when determining integral type to make room for tok!"" 2014-02-11 11:53:28 +01:00
Hackerpilot 2293c33420 Merge pull request #97 from AndrejMitrovic/FixDocs
[Trivial] Add missing 'possibleDefaultTokens.length' in TokenIdType docs.
2014-02-10 10:32:41 -08:00
Andrej Mitrovic 3f0babc64c Fixup some typo's. 2014-02-10 18:17:14 +01:00
Andrej Mitrovic 0bf31d5c8b Add missing 'possibleDefaultTokens.length' in TokenIdType docs. 2014-02-10 18:09:05 +01:00
Hackerpilot d13d680b74 Updated lexer docs. Implemented delete and fp operator rules. Fixed bug with AST traversal 2014-01-26 22:47:21 -08:00
Hackerpilot 2f78272fed Simplified lexer interface 2014-01-23 22:54:18 -08:00
Hackerpilot 3eaf095625 Fix ordering on token handling 2014-01-23 02:29:27 -08:00
Hackerpilot 62df18f489 Fixed stupid off-by-one errors 2014-01-22 00:24:58 -08:00
Hackerpilot 4ec5af9093 Lots of optimization. Updated GDC portion of build script 2014-01-21 23:26:23 -08:00
Hackerpilot a060dabde7 Initial work on the lexer optimization 2014-01-21 19:48:03 -08:00
Hackerpilot d840eed12a Workaround for compiler segfault in 2.064.2 2014-01-21 14:21:11 -08:00
Hackerpilot c01c51a61e Back-end cleanup and optimization in the lexer 2014-01-19 23:13:13 -08:00
Hackerpilot 281b46eea2 String cache improvements 2014-01-16 18:46:18 -08:00
Hackerpilot d83518e236 Speed up whitespace handling 2014-01-15 03:31:06 +00:00
Hackerpilot 442001d731 Re-introduce string cache and clean up some code 2014-01-15 02:38:52 +00:00
Hackerpilot f7cc41de05 Fix bad line/column/index numbers for static tokens 2014-01-13 22:21:36 +00:00
Hackerpilot 0e3adafd48 Added ddoc comment handling 2014-01-13 20:51:42 -08:00
Hackerpilot b092840c70 Migrated over to Dmitry's buffer range. Lots of stuff is disabled for now 2014-01-09 01:17:47 +00:00
Hackerpilot 1febda6fc7 This revision has a code gen bug. 2013-12-27 23:05:03 +00:00
Hackerpilot d5a3918dd0 More work on the lexer transition 2013-12-23 00:53:46 -08:00
Hackerpilot aedf58eb81 minor cleanup 2013-12-16 16:00:14 -08:00
Hackerpilot 2569c80893 Fix build 2013-12-16 01:35:13 +00:00
Hackerpilot 84005dc200 Some random messing about as well as some changes to make the code compile on git HEAD dmd 2013-12-16 01:23:23 +00:00
Hackerpilot 629c93eca7 Convert some token id functions to templates 2013-12-15 14:01:11 -08:00
Hackerpilot 8c4a87f563 Converted everything to the new lexer 2013-12-15 03:02:52 -08:00