Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为带有变量、简单条件、循环和函数的代码创建解析器,例如:
f=1; i=1; while(i<10){ f=f*i; i=i+1; } print(f);
我阅读了很多理论,但没有找到任何 Lr(1) Parser for code 的工作示例。有必要在没有任何解析器生成器的情况下这样做..有人吗?