/tinygolexer

simple tiny go lexer

Primary LanguageGoMIT LicenseMIT

tinygolexer

simple tiny go lexer

  • MatcherKey

  • MatcherFunc

  • MatcherWhiteSpace 这三个Matcher不能省略

  • lexer文件结构解析

  • 没有matcher的内容解析为word

  • 关键字的解析

  • 根据template 生成词法分析的代码,根据id分析然后生成代码

  • 正则表达是适用$包括

  • 正则表达式的解析

  • 处理函数添加