我们希望避免对一个复杂语言分析器的需求,与此同时我们还要小心地选取一个词汇集来使人们读写脚本相对的简单些。
We want to avoid the need for a complex language parser, but at the same time we have been careful to choose a vocabulary that makes it relatively easy for humans to read and write the scripts.
词法分析器是我们的语言知识中识别“这是一个句子;这是标点;t wenty - three是一个单一的词”的那一部分。
The lexer is the part of our language knowledge that says "this is a sentence; this is punctuation; twenty-three is a single word."
ruby_parser(RP)是一个纯Ruby实现的Ruby语法分析器(借助了racc——它在缺省情况下使用C语言的扩展).
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension).
应用推荐