arcsysu / sysu-lang Goto Github PK
View Code? Open in Web Editor NEWA mini, simple and modular compiler lab for SYsU/SysY(tiny C). Based on Clang/LLVM/ANTLR4/Bison/Flex.
Home Page: https://arcsysu.github.io/SYsU-lang/
License: Other
A mini, simple and modular compiler lab for SYsU/SysY(tiny C). Based on Clang/LLVM/ANTLR4/Bison/Flex.
Home Page: https://arcsysu.github.io/SYsU-lang/
License: Other
$ cmake --build .
[2/3] Building CXX object parser/CMakeFiles/sysu-parser.dir/main.cc.o
FAILED: parser/CMakeFiles/sysu-parser.dir/main.cc.o
/usr/bin/clang++ -I/usr/lib/llvm-14/include -O2 -g -DNDEBUG -MD -MT parser/CMakeFiles/sysu-parser.dir/main.cc.o -MF parser/CMakeFiles/sysu-parser.dir/main.cc.o.d -o parser/CMakeFiles/sysu-parser.dir/main.cc.o -c /root/WAS/GYH-SYsU-lang/SYsU-lang/build/parser/main.cc
/root/WAS/GYH-SYsU-lang/SYsU-lang/parser/parser.y:52:10: error: use of undeclared identifier 'YYEOF'
return YYEOF;
^
1 error generated.
ninja: build stopped: subcommand failed.
把 SYsU-lang/parser/parser.y
里的 yylex 和 main 移到第三节就好了,第一节里只做一个 yylex 的声明
给个SysY语言词法定义文档链接或者 clang -dump-tokens 的文档链接?
sysu-compiler第107行
return check_ast(ast0, ast1, testcase, command0, command1)
使用了return,导致只能评测一个样例,应删去return
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.