简体   繁体   English

了解SableCC中的语法

[英]Understanding grammar in SableCC

I am going through sableCC for one of my projects and I have few queries about the Grammar file. 我正在为我的一个项目进行sableCC,并且我对语法文件的查询很少。 1. What is the difference between Helper and Tokens? 1. Helper和Token有什么区别? 2. What should go in helper and Token? 2.助手和令牌应该包含什么? 3. And most importantly what is Productions? 3.最重要的是生产是什么?

you can see the thesis here 你可以在这里看到论文

Token : lexical defnitions for numbers, arithmetic op- erators, parentheses and blanks etc. 令牌 :数字,算术运算 ,括号和空格等的词汇定义。

helper : is a character set or a regular expression denoted by an identifer. helper :是一个字符集或由标识符表示的正则表达式。

Productions : is a grammar that you define for identify. 作品 :是您定义用于识别的语法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM