Single header generates again, some more cleanup.

Looking into properly dealing with empty lines...

I want to preserve the text's empty lines in the AST for serialization purposes (perserve formatting for gapes between definitions).
Don't want to introduce the possibility of it breaking though, so will have to ignore empty_lines in a general way (if they are in a bad spot).
Attempted to cover that by having TokArray::current() auto-skip empty lines and eat as well if the type doesn't match.
This commit is contained in:
2023-08-03 23:18:33 -04:00
parent 5d7dfaf666
commit d36c3fa847
20 changed files with 241 additions and 1704 deletions

View File

@ -32,6 +32,7 @@ Decl_Template, "template"
Decl_Typedef, "typedef"
Decl_Using, "using"
Decl_Union, "union"
Empty_Line, "__empty_line__"
Identifier, "__identifier__"
Module_Import, "import"
Module_Export, "export"

1 Invalid __invalid__
32 Decl_Typedef typedef
33 Decl_Using using
34 Decl_Union union
35 Empty_Line __empty_line__
36 Identifier __identifier__
37 Module_Import import
38 Module_Export export