mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-16 11:10:14 -08:00
eval2: macro argument expression tree parsing
This commit is contained in:
1 parent
d7393b2f65
commit
bcbc5e4a2a
6 files changed
+38
-5
No files matched your search
@@ -43,10 +43,10 @@ entry_point(CmdLine *cmdline)
|
||||
// (A)
|
||||
// int & B
|
||||
// (1 + (int)&B)
|
||||
s("bar(a, b) = a + b"),
|
||||
s("123, 456"),
|
||||
s("int32 == int32"),
|
||||
s("foo = 123"),
|
||||
// s("bar(a, b) = a + b"),
|
||||
s("1 > 2"),
|
||||
s("1 ? \"Test\" : 888"),
|
||||
s("'a'"),
|
||||
@@ -98,6 +98,12 @@ entry_point(CmdLine *cmdline)
|
||||
{
|
||||
str8_list_push(scratch.arena, &msgs, n->string);
|
||||
}
|
||||
if(parse.status == E2_ParseStatus_CheckIdentifierIsType)
|
||||
{
|
||||
identifier_is_type = identifier_is_type || str8_match(parse.identifier, s("int32"), 0);
|
||||
identifier_is_type = identifier_is_type || str8_match(parse.identifier, s("float32"), 0);
|
||||
identifier_is_type = identifier_is_type || str8_match(parse.identifier, s("float64"), 0);
|
||||
}
|
||||
if(e2_parse_status_is_terminal(parse.status))
|
||||
{
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user