foo()
bar(1)
baz(1,2)
-# if (123) {}
-# if 123 {}
-# if (123) {} else {}
-# if (123) {} else if (123) {}
-# if (123) {} else if (123) {} else {}
-# if 123 {} else if 123 {} else {}
-#
-# fun main(args string[]) int {
-# 123
-# }
+ if (123) {}
+ if 123 {}
+ if (123) {} else {}
+ if (123) {} else if (123) {}
+ if (123) {} else if (123) {} else {}
+ if 123 {} else if 123 {} else {}
+ fun main(args string[]) int {
+ 123
+ }
}
while (!matches(p, '}')) {
if (matches(p, T_LET) || matches(p, T_VAR)) {
definition(p);
+ } else if (matches(p, T_FUN)) {
+ func_definition(p);
} else {
expression(p);
}