cc: fix typo

This commit is contained in:
Paul Mathieu
2021-03-20 21:25:01 -07:00
parent f7b7118278
commit eb303641d9
2 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ fun_decl: fun_prot ";"
fun_prot: type symbol "(" [fun_param ("," fun_param)*] ")"
fun_param: type [symbol]
global_var: type symbol sized_array* empty_array? [ "=" litteral ] ";"
global_var: type symbol sized_array* empty_array? [ "=" literal ] ";"
fun_def: fun_prot body
@@ -109,7 +109,7 @@ initializer_list: "{" [init_list_field ("," init_list_field)* ","? ] "}"
| "&" prec2_expr -> address_of
| "sizeof" prec2_expr -> sizeof
?prec1_expr: litteral
?prec1_expr: literal
| identifier
| "(" expression ")"
| prec1_expr "++" -> post_increment
@@ -123,7 +123,7 @@ initializer_list: "{" [init_list_field ("," init_list_field)* ","? ] "}"
label: IDENTIFIER
litteral: SIGNED_NUMBER | ESCAPED_STRING | HEX_LITTERAL | CHARACTER
literal: SIGNED_NUMBER | ESCAPED_STRING | HEX_LITTERAL | CHARACTER
field: IDENTIFIER
identifier: IDENTIFIER
?symbol: IDENTIFIER