You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 regels
700 B

============================================
Function calls
============================================
int main() {
printf("hi! %d\n", x);
}
---
(function_declaration (identifier) (identifier) (formal_parameters)
(statement_block
(expression_statement (function_call (identifier) (string) (identifier)))))
============================================
Field access
============================================
int main() {
s.data1;
p->data2;
}
---
(function_declaration (identifier) (identifier) (formal_parameters)
(statement_block
(expression_statement (field_access (identifier) (identifier)))
(expression_statement (deref_field_access (identifier) (identifier)))))