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
项目地址:https://github.com/WGrape/lexer
类别:JS
项目后续更新计划:更多语言的词法分析支持与项目日常维护、制作JS生态中的编译器前端工具链
项目描述 :一个基于DFA法的支持多语言扩展的JS版开源词法分析器
推荐理由:
示例代码:
// 词法分析器 let lexer = { // 有限状态自动机 deterministic finite automaton DFA: { result: { matchs: [], // 已匹配的字符队列 tokens: [], // 已生成的token列表 }, state: DFA_STATE_CONST.S_RESET, // 当前机器的状态 events: { flowtoNextState(ch, state) { lexer.DFA.resultChange.pushToMatchs(ch); lexer.DFA.state = state; }, flowtoResetState() { lexer.DFA.state = DFA_STATE_CONST.S_RESET; }, }, }, };
The text was updated successfully, but these errors were encountered:
您推荐的项目,已成功发布在 HelloGitHub 第 67 期,并把您添加到了贡献者列表中。
欢迎继续推荐如此优秀的项目、告诉其他小伙伴加入到 HelloGitHub 项目中,没有 star 本项目的请 star 一下。谢谢 🙏
Sorry, something went wrong.
感谢您的收录,已把HelloGithub项目添加至Lexer项目的鸣谢列表中。
No branches or pull requests
项目推荐
项目地址:https://github.com/WGrape/lexer
类别:JS
项目后续更新计划:更多语言的词法分析支持与项目日常维护、制作JS生态中的编译器前端工具链
项目描述 :一个基于DFA法的支持多语言扩展的JS版开源词法分析器
推荐理由:
示例代码:
The text was updated successfully, but these errors were encountered: