We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdd219 commit 10cd389Copy full SHA for 10cd389
lexical_analyzer/scanner.l
@@ -193,7 +193,7 @@ int main(int argc, char const *argv[]) {
193
int flag = 0;
194
initMap(&map);
195
printf("Modified by ■■■, ■■■, ■■■■■■■■■■■■\n");
196
-
+
197
printf("Enter the name of the program file: "); //读取文件
198
scanf("%s", filename);
199
FILE *file = fopen(filename, "r");
semantic_syntactic_analyzer/parser.y
@@ -24,9 +24,9 @@ extern int iserror = 0;
24
%left ADD SUB
25
%left MUL DIV
26
27
-%left OR
28
%left AND
29
-%right NOT
+%left OR
+%left NOT
30
%left '+' '-'
31
%left '*' '/'
32
%right '='
0 commit comments