Yacc can recognize patterns of tokens; for instance, as in the example above, it can recognize that an expression can consist of a value, either a plus or minus sign, and another value.
yacc可以识别出记号的模式;例如,如上面例子中所示,它可以识别出一个表达式可能由一个值、一个加号或者减号以及另一个值构成。
Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value.
接着从这个字符开始,读入一个可选的正负号,然后尽可能多的读入数字,最后将它们解析成数值。
Floating-Point literals may also be represented using exponential notation: a real number followed by the letter e(or E), followed by an optional plus or minus sign, followed by an integer exponent.
此外,还可以使用指数记数法表示浮点型直接量,即实数后跟随字母e或E,后面加上正负号,其后再加一个整型指数。
Floating-Point literals may also be represented using exponential notation: a real number followed by the letter e(or E), followed by an optional plus or minus sign, followed by an integer exponent.
此外,还可以使用指数记数法表示浮点型直接量,即实数后跟随字母e或E,后面加上正负号,其后再加一个整型指数。
应用推荐