fleshed out parser loop
This commit is contained in:
parent
cb84db53d8
commit
45d32cef6b
3 changed files with 21 additions and 1 deletions
|
|
@ -32,11 +32,13 @@ func Lex(input string) Token {
|
|||
if is_list {
|
||||
// TODO: Pass a pointer out of Lex and store a pointer
|
||||
*iter._inner = Lex(tok.String())
|
||||
*iter.tag = LIST_T
|
||||
is_list = false
|
||||
|
||||
} else {
|
||||
// TODO: Store a pointer to the contents of the stringbuilder
|
||||
*iter._inner = tok.String()
|
||||
*iter.tag = OPERAND_T
|
||||
}
|
||||
|
||||
iter_alloced = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue