Commit Graph

358 Commits

Author SHA1 Message Date
4280576f5f Fix commaList 2024-02-07 17:09:35 -05:00
7b6c1b8398 What crack was I smoking when I made LiteralNil.Value 2024-02-07 15:46:42 -05:00
6cab43332e Remove entity.Boolean because I have overcome my haters 2024-02-07 15:41:48 -05:00
7028ec89b6 Broke out Parser.parseVariable() for consistency 2024-02-07 15:36:33 -05:00
ebfaba0d7d Add parsing int, float, and string literals 2024-02-07 14:15:06 -05:00
a053eeb207 Declaration and variable expression parsing 2024-02-07 13:26:25 -05:00
239dcfe5a0 Parser panic information is now more detailed 2024-02-07 13:01:25 -05:00
a80b6ad74e Add tokens to startTokensExpression 2024-02-07 12:50:19 -05:00
a14df2bfbb Created an expression decision tree plan 2024-02-07 12:44:54 -05:00
e14b33657f Function headings are now parsed correctly 2024-02-07 11:38:15 -05:00
7e8e46a15d Allow arbitrary integer width 2024-02-07 11:22:37 -05:00
56602e0f17 Updated TestType test case for parser 2024-02-07 03:39:37 -05:00
a54feb4522 Parse integer, word, and float types 2024-02-07 03:37:02 -05:00
aaff208be2 Fix function parsing 2024-02-07 03:22:00 -05:00
21f55472fb Parse interface types 2024-02-07 03:18:02 -05:00
9cd7877b07 Parse signatures 2024-02-07 03:17:50 -05:00
7c1d4790ab Parse struct types 2024-02-07 03:02:43 -05:00
673d43a0c8 De-ambiguify interface and struct type syntax 2024-02-07 03:02:16 -05:00
8140e80c15 Array type parsing 2024-02-07 00:32:18 -05:00
9fcfc63935 Normalize parsing of access control symbols 2024-02-07 00:23:10 -05:00
4f852012ca Parse pointers/slices 2024-02-07 00:22:58 -05:00
096cc173db Add some convenience methods to parser, fix appendCopy 2024-02-07 00:21:44 -05:00
0fef43e13d Added parsing named types 2024-02-06 23:48:25 -05:00
d693132513 Token.Is and Token.ValueIs work properly 2024-02-06 23:16:48 -05:00
28fa7321df Lexer now records the width of tokens 2024-02-06 23:08:25 -05:00
0133e87831 I want to look at my juicy error formatting even when it passes 2024-02-06 22:33:18 -05:00
62c96ed761 FINALLY errors and lexer agree on row/col positions properly 2024-02-06 22:11:46 -05:00
4d2d52b425 Fixed error test cases 2024-02-06 21:59:41 -05:00
8b7ac97e0d Lexer saves error lines 2024-02-06 21:54:20 -05:00
c38d15fa87 Lexer tests check for line content, print formatted errors 2024-02-06 19:08:21 -05:00
48d8823a4d Parser errors make more sense 2024-02-06 18:58:09 -05:00
1aa4a5d290 Added Token.String() 2024-02-06 18:56:04 -05:00
f179997837 Parser is incomplete but compiles 2024-02-06 18:29:37 -05:00
e95fe53338 Created a plan for expression parsing 2024-02-06 17:04:59 -05:00
e44537cebe Add a guide to writing parser methods so I don't forget 2024-02-06 16:56:10 -05:00
c0ca9108e7 Further normalize expectation responsibilities of parsing methods 2024-02-06 16:39:15 -05:00
befb178291 Typedef parsing complete, without detail 2024-02-06 16:32:14 -05:00
0f2459d004 Add type parsing stub 2024-02-06 16:31:53 -05:00
28a50325cb Appended -Core to parsing methods that only partially parse things 2024-02-06 16:30:53 -05:00
683a15a215 Parsing functions *always* begin on current token, leave trailing one 2024-02-06 16:22:49 -05:00
fa5e32f374 Method and function parsing complete, without detail 2024-02-06 16:13:05 -05:00
68be179675 Expression parsing stub 2024-02-06 16:12:51 -05:00
afebc02706 Parser.expectValue() and Parser.expectValueDesc() take in a kind parameter now 2024-02-06 15:57:27 -05:00
b1777bc77d Add parser.Tree.AddDeclaration() 2024-02-06 15:54:21 -05:00
02370adcd5 Added commaList function 2024-02-06 12:20:13 -05:00
7a4b67b538 Why did I name a prepend function appendr?? 2024-02-06 11:45:08 -05:00
d1aec952e7 askl;d;sldkf 2024-02-06 02:55:39 -05:00
88b7cd456e Rename typeStartTokens to startTokensType 2024-02-06 02:41:45 -05:00
69dfbecce1 Move top-level expect from Parser.parseTopLevel into Parser.parse() 2024-02-06 02:40:19 -05:00
879951ed7f Parser.parseSignature stub 2024-02-06 02:36:51 -05:00