小编TYF*_*YFA的帖子

Octal digit in ANSI C grammar (lex)

I looked ANSI C grammar (lex).

And this is octal digit regex

0{D}+{IS}?      { count(); return(CONSTANT); }
Run Code Online (Sandbox Code Playgroud)

My question is why do they accept something like 0898?

It's not an octal digit.

So i thought they would consider that, but they just have wrote like that.

Could you explain why is that? Thank you

c regex grammar lex

4
推荐指数
1
解决办法
77
查看次数

标签 统计

c ×1

grammar ×1

lex ×1

regex ×1