查找记号的确有一点意思,但真正有意思的是如何向记号列表应用语法。
Finding tokens is a bit interesting, but the real work comes with applying grammars to the token lists.
确保记号列表在语法上是有效的。
Ensures that a list of tokens has valid syntax according to a grammar.
解析阶段在记号列表的基础上创建任意的树结构。
The parsing stage creates arbitrary tree structures on the basis of token lists.
列表会自动更新翻译记号的变化。
它还声明了新的记号,这些记号分别从problemmarker(显示在问题列表中)和textmarker(为了记录行号)中继承而来。
It also declares that the new marker inherits from problemmarker (to show up in the problem list) and from textmarker (to be able to record a line number).
与取得列表中的元素一样,也可以通过下标记号取得字符串中的某个字符。
Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
与取得列表中的元素一样,也可以通过下标记号取得字符串中的某个字符。
Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
应用推荐