Skip to content

Commit

Permalink
compiler function/operator calls, fix vector creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed May 2, 2024
1 parent fa04bb2 commit 4f2f2da
Show file tree
Hide file tree
Showing 9 changed files with 695 additions and 94 deletions.
9 changes: 7 additions & 2 deletions grammar/gsc.g4
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ statement_inst: (operator_inst | statement_dowhile | function_call) ';';
function_call:
('thread' | 'childthread')? function_component '(' expression_list ')'
| expression14 ('thread' | 'childthread')? function_component '(' expression_list ')'
| function_call ('thread' | 'childthread')? function_component '(' expression_list ')';
| function_call ('thread' | 'childthread')? function_component '(' expression_list ')'
;

function_component: ( IDENTIFIER '::')? IDENTIFIER | '[[' expression ']]' | '[[' expression ']]' '->' IDENTIFIER;
function_component:
( IDENTIFIER '::')? IDENTIFIER
| '[[' expression ']]'
| '[[' expression ']]' '->' IDENTIFIER
;

operator_inst: BUILTIN (IDENTIFIER | expression)?;

Expand Down
Loading

0 comments on commit 4f2f2da

Please # to comment.