rename folder
parent
89f0f2e1c5
commit
ca856f121c
|
@ -1 +1,2 @@
|
|||
*.exe
|
||||
*.exe
|
||||
.vscode
|
|
@ -6,6 +6,8 @@
|
|||
"opd_stack.h": "c",
|
||||
"stdio.h": "c",
|
||||
"stack.h": "c",
|
||||
"stddef.h": "c"
|
||||
"stddef.h": "c",
|
||||
"poly_calc.h": "c",
|
||||
"stdbool.h": "c"
|
||||
}
|
||||
}
|
3
code.txt
3
code.txt
|
@ -6,6 +6,7 @@ func FUNC_1(a, b, c) {
|
|||
|
||||
x = x + 1;
|
||||
a = a + 1;
|
||||
{}
|
||||
}
|
||||
|
||||
func FUNC_2() {
|
||||
|
@ -36,7 +37,7 @@ func main()
|
|||
}
|
||||
|
||||
if (x) {
|
||||
x = 3; // comment
|
||||
x = +(-3); // comment
|
||||
}
|
||||
|
||||
x = z + 3 + 5; // comment
|
||||
|
|
4
main.py
4
main.py
|
@ -3,11 +3,11 @@ import subprocess
|
|||
|
||||
# ЭТИ ПУТИ НАДО ЗАДАТЬ ВРУЧНУЮ
|
||||
# *.l и *.y файлы из директории ANALYZERS_DIR ДОЛЖНЫ НАЗЫВАТЬСЯ как basename этой директории!!!
|
||||
ANALYZERS_DIR = r'C:\Users\user\Desktop\УЧЕБА\6_СЕМ\КОМПИЛЯТОРЫ\flex_bison_test\analyzers\polynomials'
|
||||
ANALYZERS_DIR = r'C:\Users\user\Desktop\УЧЕБА\6_СЕМ\КОМПИЛЯТОРЫ\flex_bison_test\analyzers\c_analyzer'
|
||||
FLEX_EXE_PATH = r"C:\tools\win_flex_bison\win_flex.exe"
|
||||
BISON_EXE_PATH = r"C:\tools\win_flex_bison\win_bison.exe"
|
||||
DEPENDENCY_LIST = [
|
||||
r"C:\Users\user\Desktop\УЧЕБА\6_СЕМ\КОМПИЛЯТОРЫ\flex_bison_test\analyzers\polynomials\stack\stack.c"
|
||||
# r"C:\Users\user\Desktop\УЧЕБА\6_СЕМ\КОМПИЛЯТОРЫ\flex_bison_test\analyzers\polynomials\stack\stack.c"
|
||||
]
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue