📄 readme
字号:
The files in this directory contain the ANSI C grammar from the April 30, 1985draft of the proposed standard. This copy also incorporates all bug fixes Ihave seen since the last two postings. With a little work this grammar canbe made to parse the C that most of us know and love (sort of).There is one bug fix to the grammar that is in this posting. On line 295of gram.y it previously read declaration_specifiers instead oftype_specifier_list as it does now. I believe the folks at the ANSI committeemade a mistake since if you replace the line with what the original readyou will end up with 16 shift/reduce errors and 2 reduce/reduce errors(the good ones). As it is, it only has 1 shift/reduce error that occurson the if/else construct. YACC creates the correct parser and I don't wantto ugly my grammar up.Anyway, all cumquats unite and generate this sucker. Then just sit and playwith it. Remember, the grammar accepts things like "Hello, world"++; --1.23456; *'a'but this is not a bug, but simply a shuffling of the checking into thesemantic analysis. If you want to hack it up to do lvalue and rvaluechecking, I'm sure the ANSI committee would be glad to have your changes.Don't send'em to me though. I don't want'em. Wear this in good health.Jeff Leegatech!jeff jeff@gatech jeff%gatech.CSNet@CSNet-Relay.ARPA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -