Pascal和VHDL等大小写敏感语言中的lexer要复杂一些,因为它们必须解析begin和begin等内容并为解析器生成相同的标记。
The lexers for case-insensitive languages like Pascal and VHDL are slightly more complicated because they must parse, for example, begin and begin and generate the same token for the parser.
这就是所谓的驼峰式大小写风格(camel casing),是Python和其他编程语言中广泛采用的一种技术,可使函数的名称更易阅读。
This approach is known as camel casing and is a popular technique used in Python (and other languages) to make it easier to read the names of functions.
应用推荐