We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对标准lexfile要进行parse,并转换为jsbison要求的json格式的cfg。
从lexfile:
%x MultiComment %% /\/\*/ this.pushState("MultiComment"); <MultiComment> /\*\// this.popState();
到jsbison要求的json格式的cfg(context free grammar):
{ states:{ exclusive: "MultiComment" }, rules:[{ regex: /\/\*/, action: 'this.pushState("MultiComment");' }, { conditions: ['MultiComment'], regex: /\*\//, action: 'this.popState();' }] }
目前lex2cfg中lex文法的功能为:
The text was updated successfully, but these errors were encountered:
acodercc
No branches or pull requests
对标准lexfile要进行parse,并转换为jsbison要求的json格式的cfg。
从lexfile:
到jsbison要求的json格式的cfg(context free grammar):
目前lex2cfg中lex文法的功能为:
The text was updated successfully, but these errors were encountered: