从一个通过编程说出“数学课很难”的芭比娃娃到一个能够分析句子语法但拒绝回答“四分之三的一半是多少”的首相,数学恐惧症在生活中处处可见。
From Barbie dolls programmed to say "math class is tough" to ministers of state who will parse and analyse a sentence but refuse to answer "what's half of three-quarters?", maths-phobia is everywhere.
以下是对一个句子进行词法分析和解析的示例。
词法分析器是我们的语言知识中识别“这是一个句子;这是标点;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."
应用推荐