Use a parser generator framework (for example, ANTLR).
使用解析器生成器框架(比如ANTLR)。
Ruby already ships with a parser generator called RACC, a version of YACC (which is used to build ruby_parser, the first ruby parser written in ruby).
ruby已经有了一个叫做RACC的解析器生成器,是一个YACC的移植版本(被用来编写ruby _ parser,第一个用ruby写成的ruby解析器)。
A compiler, of course, needs a way to parse the input language, and so the XRuby team created their own Ruby parser using the popular ANTLR parser generator.
当然,编译器需要一种分析输入语言的方法,XRuby团队用流行的ANTLR分析器产生器创建了他们自己的Ruby分析器。
A compiler, of course, needs a way to parse the input language, and so the XRuby team created their own Ruby parser using the popular ANTLR parser generator.
当然,编译器需要一种分析输入语言的方法,XRuby团队用流行的ANTLR分析器产生器创建了他们自己的Ruby分析器。
应用推荐