Commit 3c732f7c authored by 刘睿博's avatar 刘睿博 🎯

Fix Typo ASSIN -> ASSIGN

parent dc2e93be
...@@ -34,7 +34,7 @@ void pass_node(char *text){ ...@@ -34,7 +34,7 @@ void pass_node(char *text){
\>= {pos_start = pos_end; pos_end += 2; pass_node(yytext); return GTE;} \>= {pos_start = pos_end; pos_end += 2; pass_node(yytext); return GTE;}
== {pos_start = pos_end; pos_end += 2; pass_node(yytext); return EQ;} == {pos_start = pos_end; pos_end += 2; pass_node(yytext); return EQ;}
!= {pos_start = pos_end; pos_end += 2; pass_node(yytext); return NEQ;} != {pos_start = pos_end; pos_end += 2; pass_node(yytext); return NEQ;}
= {pos_start = pos_end; pos_end += 1; pass_node(yytext); return ASSIN;} = {pos_start = pos_end; pos_end += 1; pass_node(yytext); return ASSIGN;}
; {pos_start = pos_end; pos_end += 1; pass_node(yytext); return SEMICOLON;} ; {pos_start = pos_end; pos_end += 1; pass_node(yytext); return SEMICOLON;}
, {pos_start = pos_end; pos_end += 1; pass_node(yytext); return COMMA;} , {pos_start = pos_end; pos_end += 1; pass_node(yytext); return COMMA;}
/* TODO: phase1. 请在这里补充其他的词法规则 */ /* TODO: phase1. 请在这里补充其他的词法规则 */
......
...@@ -48,7 +48,7 @@ syntax_tree_node *node(const char *node_name, int children_num, ...); ...@@ -48,7 +48,7 @@ syntax_tree_node *node(const char *node_name, int children_num, ...);
%token <node> GTE %token <node> GTE
%token <node> EQ %token <node> EQ
%token <node> NEQ %token <node> NEQ
%token <node> ASSIN %token <node> ASSIGN
%token <node> SEMICOLON %token <node> SEMICOLON
%token <node> COMMA %token <node> COMMA
%token <node> LPARENTHESE %token <node> LPARENTHESE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment