Commit Graph

17 Commits

Author SHA1 Message Date
a665463932 Lexer no longer freaks out when parsing a 0 2022-09-03 20:27:03 -04:00
32e5b0ce98 Fixed parser test case
The octal literals with 9 in them were causing the parser to fail.
2022-09-02 01:40:33 -04:00
ed44795664 Lexer now rejects strange chars in integer literals 2022-09-02 01:37:58 -04:00
65c213f1f3 Fixed import paths 2022-08-30 01:11:10 -04:00
Sasha Koshka
120976a0f3 Numbers now tokenize with the correct width 2022-08-18 11:32:50 -04:00
Sasha Koshka
39e4fbe844 Replaced references to file.Error with infoerr.Error 2022-08-18 00:58:40 -04:00
Sasha Koshka
dd8bbf8b13 Lexer now uses go's strconv number parsing functions
This allows for better accuracy when parsing floats, at the cost of only
supporting decimal floating point literals. The lexer now passes all tests.
2022-08-18 00:31:27 -04:00
Sasha Koshka
608162fa92 Fixed bug in number lexing function that prevented reading zero 2022-08-15 14:42:32 -04:00
856d5763d3 Lexer tokens are now created by the lexer
This is so positional information can be accurately embedded into them.
2022-08-12 14:34:07 -05:00
7914f0df45 Location now stores width instead of Error 2022-08-12 13:43:09 -05:00
81b47f7734 Replaced all occurences of github.com with git.tebibyte.media 2022-08-12 10:21:36 -05:00
f7a823687e Added new test for string and rune literals (which it passes) 2022-08-11 12:12:41 -05:00
4f37715a8c Hexidecimal numbers are now properly read 2022-08-11 04:25:56 -05:00
758b85e735 Added naieve string and char literal parsing 2022-08-11 02:47:51 -05:00
3768e3454f Added float support 2022-08-11 02:17:35 -05:00
40ad569870 Collapsed all number tokenization functions into just one 2022-08-11 02:03:54 -05:00
9e4684dbed Number tokenizing functions use one digit conversion functions 2022-08-11 01:57:04 -05:00