Sasha Koshka
0ceaedbcd8
Object sections now ToString properly
5 months ago
Sasha Koshka
edb9c1a0b6
Fixed assignment to entry in nil map
5 months ago
Sasha Koshka
bd433fc65d
Untested object section parsing
5 months ago
Sasha Koshka
c847d2187d
Fixed the object section test
5 months ago
Sasha Koshka
cb2264977a
Added object sections to the tree for real lol
5 months ago
Sasha Koshka
790e7e632e
Removed recursive member parsing nonsense from type section
5 months ago
Sasha Koshka
fc1568aece
Updated ToString methods to match new tree structure
5 months ago
Sasha Koshka
222c47ced9
Altered tree to separate object and blind type definitions
6 months ago
Sasha Koshka
da6d587a48
Split test cases between blind types and objt types
6 months ago
Sasha Koshka
018499310c
Merge pull request 'type-section' ( #4 ) from type-section into main
...
Reviewed-on: #4
6 months ago
Sasha Koshka
78b8b9dacd
Fixed test case for parser
...
The correct output string was missing a type specifier. The lexer now passes
this test.
6 months ago
Sasha Koshka
2605d1fb09
Fixed nested complex initialization values not parsing
6 months ago
Sasha Koshka
9dce9b2f75
Fixed test formatting
6 months ago
Sasha Koshka
9b4279c052
Fixed ToString of type nodes
6 months ago
Sasha Koshka
2296765e81
Added recursive parsing of type nodes
6 months ago
Sasha Koshka
19d0b3f455
Complex default values of type nodes now ToString properly
6 months ago
Sasha Koshka
e25e7bdf14
Parser can now parse array and object initializations
6 months ago
Sasha Koshka
63419165dd
Moved most of type section parsing into reusable type node parsing method
6 months ago
Sasha Koshka
69aaae8f14
Restructured type definitions to use a node tree
6 months ago
Sasha Koshka
717474a59e
Removed unnescessary println statements (oopsie)
6 months ago
Sasha Koshka
ef90115a1b
Fixed some test case formatting
6 months ago
Sasha Koshka
cced825f74
Changed this one thing to the other thing
6 months ago
Sasha Koshka
9fd3fb1263
Added basic ToString method to TypeSection
6 months ago
Sasha Koshka
5c2a7aeb07
Created base for type section parsing
6 months ago
Sasha Koshka
bc9beb0317
Created test case for type section
6 months ago
Sasha Koshka
a548dcc585
Changed permission codes to only determine private/public/readonly
...
Changing permissions within the module was redundant and would have just
conflicted with the :mut type qualifier. This is easier to understand.
6 months ago
Sasha Koshka
15eb96e8ac
Lexer passes all width tests
6 months ago
Sasha Koshka
120976a0f3
Numbers now tokenize with the correct width
6 months ago
Sasha Koshka
bde4bf8493
String and rune literals now have correct width
6 months ago
Sasha Koshka
a013d4caad
Lexer tests now check token width
6 months ago
Sasha Koshka
be9a3603d2
Made structural change to lexer test definitions
6 months ago
Sasha Koshka
54de3d1270
Fixed test columns and widths
6 months ago
Sasha Koshka
a87973c141
Error widths now work properly
6 months ago
Sasha Koshka
85996b2554
Added more error test cases
6 months ago
Sasha Koshka
4780d9cc28
Fixed bug in file where it would report its location one step ahead
6 months ago
Sasha Koshka
bb89009742
Add description method to Location
6 months ago
Sasha Koshka
9e66305001
Created test to check lexer errors
6 months ago
Sasha Koshka
39e4fbe844
Replaced references to file.Error with infoerr.Error
6 months ago
Sasha Koshka
d42d0c5b34
Renamed error module to infoerr
6 months ago
Sasha Koshka
ca5f8202bb
Put Error in its own module
6 months ago
Sasha Koshka
abc6e44fb2
Removed Location's dependency on Error
6 months ago
Sasha Koshka
cce841f48e
Add getters to File
6 months ago
Sasha Koshka
568134a7e9
Add getter functions to Location
6 months ago
Sasha Koshka
57f02ad6f6
Added getter functions to Error
6 months ago
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.
6 months ago
Sasha Koshka
ac85c2c725
Remove line break at top of readme
6 months ago
Sasha Koshka
9b62a9b9ed
Added logo to README
6 months ago
Sasha Koshka
63110d9a32
Removed bad spacing in ObjectInitializationValues.ToString
...
If a value had more initialzation values inside of it, it would leave a space
before the newline. This was causing the parser test to believe the parser to be
failing. The parser now passes the test.
6 months ago
Sasha Koshka
6a5851c9eb
Parser tests now show exact line and column where data is mismatched
6 months ago
Sasha Koshka
e069569c3c
Merge pull request 'data-section' ( #3 ) from data-section into main
...
Reviewed-on: #3
6 months ago