mirror of https://github.com/tbklang/tlang.git
Implement parseStatement()
#75
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 3 days 22 hours
Due Date
deavmi
3 days 22 hours
Blocks
Depends on
#74 for loops
tlang/tlang
#76 Handling of this (post-iteration statement)
tlang/tlang
Reference: tlang/tlang#75
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is
parseStatement()
?Well, we have
parseBody()
which effectievly implements a while-llop whose body would be what we wantparseStatement()
to be. We want this because in some cases we only need to parse the next available statement.I have now added the body of code in
parseBody()
toparseStatement()
. I could actually do something where only a sub-section of said code fromparseBody()
is actually moved intoparseStatement()
as I don't think that a class definition or struct would make much sense, in any case it is what it is for now.I haven't yet activated this though.
I have now activated it. I am going to have to run some tests though.
Check list
simple_x.t
workparseBody()
and out ofparseStatement()
class
definitionsstruct
definitionsWill look at later in #79 or somethingfunction
definitionsSeems as though the test cases are passing.
Moving function definitions out may take time as its under
parseName()
. For now, just don't do that.Completed properly with commit
eabc300fd346c37313c2ff2499a73fb4c53ba5dc
on branchloops
.