✨ Welcome to my page! 🥳
I'm GTY,
Currently a senior student in Tongji University, Majored in Computer Science.
小红书:枫云树
CSDN:枫铃树
同济大学计算机系课程《编译原理》大作业项目。包含词法分析器,LR1语法分析器。
License: Mulan Permissive Software License, Version 2
✨ Welcome to my page! 🥳
I'm GTY,
Currently a senior student in Tongji University, Majored in Computer Science.
小红书:枫云树
CSDN:枫铃树
C99文法关于 if 语句的描述是有二义性的。ToyCompile LR1 分析器未对该情况做特殊处理。
例如:
if (a)
if (b)
c
else
d
上方代码的 else,如果按照“移进”规则,会被判定为附属于第二个 if。这种理解是正确的。
但是,如果按照“归约”规则,else 会被分配给第一个 if,这是错误的。
文法分析过程,有两个项目会产生移进归约冲突。恰好产生“移进”命令的语句在后面,覆盖掉前面的指令,使得问题没有暴露。
应该采用一定手段处理这个问题,而不是依赖幸运的语句产生顺序。
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.