Commit Graph

182 Commits (f693d71a8aabb8d2e0b57d95c5e4dd19b6b1678c)

Author SHA1 Message Date
Tristan B. V. Kildaire c439b4792c Integrated new Token type with lexer, now tokens take with them their line number and column number 2021-03-03 12:11:57 +02:00
Tristan B. V. Kildaire ef554befa4 Refactored lexer state variables to instance fields rather than local variables 2021-03-03 11:45:23 +02:00
Tristan B. V. Kildaire 8d24f6ada2 Added new-line support
Also added tracking for line number
2021-03-03 11:41:16 +02:00
Tristan B. V. Kildaire 45e707b582 Added skeleton parser module 2021-03-03 11:08:34 +02:00
Tristan B. V. Kildaire 2ceaa0c8b0 Added Token class for future use in lexer 2021-03-03 11:05:57 +02:00
Tristan B. V. Kildaire 1c2684814f Added TODO to do more tests 2021-03-03 11:02:03 +02:00
Tristan B. V. Kildaire 0f8862aedf Corrected module placement 2021-03-03 10:54:30 +02:00
Tristan B. V. Kildaire bd7c5aab72 Added usage instructions 2021-03-03 01:14:30 +02:00
Tristan B. V. Kildaire fa454049e8 Added build instructions and link to docs 2021-03-03 01:01:54 +02:00
Tristan B. V. Kildaire fa20257235 Updated .gitignore 2021-03-03 00:59:02 +02:00
Tristan B. V. Kildaire c3622869a4 Merge branch 'master' of https://github.com/tbklang/tlang 2021-03-03 00:58:46 +02:00
Tristan B. V. Kildaire 508885377f Removed TODO 2021-03-03 00:58:40 +02:00
Tristan B. V. Kildaire 02ed1f5af4 Addec character literal support 2021-03-03 00:37:52 +02:00
Tristan B. V. Kildaire a5b9837c80 Added escape sequence support 2021-03-03 00:11:16 +02:00
Tristan B. V. Kildaire 568c26765b
Create README.md 2021-03-02 23:58:06 +02:00
Tristan B. V. Kildaire 6c529fb67b Added more splitter characters 2021-03-02 23:36:53 +02:00
Tristan B. V. Kildaire 68f9bb6523 Fixed bug (and added corresponding unit test) whereby the combinator check would fail if the first element was at end-of-source 2021-03-02 23:29:19 +02:00
Tristan B. V. Kildaire 28ab54e852 Added more uni tests 2021-03-02 23:27:32 +02:00
Tristan B. V. Kildaire a7c0d37a01 Removed testing code 2021-03-02 23:22:46 +02:00
Tristan B. V. Kildaire f23d884b90 Fixed bug where we overshot array and added unittests 2021-03-02 23:22:42 +02:00
Tristan B. V. Kildaire 1b0de5776b Fixed bug whereby any splitter would result in the addition of the semi-colon, regardless of the splitter character 2021-03-02 22:44:24 +02:00
Tristan B. V. Kildaire acab7dd5f3 Support for several splitter characters added 2021-03-02 22:43:09 +02:00
Tristan B. V. Kildaire ce7ea36b0b Only flush the currentToken when encountering a semi-colon IF the currentToken is non-empty 2021-03-02 22:33:38 +02:00
Tristan B. V. Kildaire b178528ece Only flush token if there is one leftover 2021-03-02 22:31:53 +02:00
Tristan B. V. Kildaire cce91b6615 Added support for semi-colon delimiting 2021-03-02 22:31:18 +02:00
Tristan B. V. Kildaire 1f103bf190 Basic lexer added
Supports splitting by whitespace
Supports escaping into string mode and returning back to whitespace splitting mode
2021-03-02 22:26:35 +02:00
Tristan B. V. Kildaire c63701da6d Added gogga dependancy 2021-03-02 21:56:08 +02:00
Tristan B. V. Kildaire 7a2b73a299 Call compilation entry point 2021-03-02 21:55:45 +02:00
Tristan B. V. Kildaire 639455d792 Added basic command-line arguments parsing 2021-03-02 21:51:49 +02:00
Tristan B. V. Kildaire 505764b8bb Added directory structure 2021-03-02 21:14:23 +02:00
Tristan B. V. Kildaire 86ecf15416 Added jcli dependancy 2021-03-02 21:09:13 +02:00
Tristan B. V. Kildaire 0c6311b3eb Initial commit 2021-03-02 21:03:55 +02:00