handle parens
This commit is contained in:
parent
33b497d0a2
commit
4d0451f9d3
1 changed files with 12 additions and 1 deletions
13
main.c
13
main.c
|
|
@ -1092,8 +1092,19 @@ uint16_t evaluate(const char* text)
|
|||
break;
|
||||
|
||||
case tk_oparen:
|
||||
assert(!"TODO");
|
||||
{
|
||||
next_token();
|
||||
|
||||
retval = parse_root();
|
||||
|
||||
if (tokenkind != tk_cparen)
|
||||
{
|
||||
assert(!"NOPE");
|
||||
}
|
||||
|
||||
next_token();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
assert(!"TODO");
|
||||
|
|
|
|||
Loading…
Reference in a new issue