问题 As an project assignment, I need to parse a plain-C grammar from Java to generate AST output. As a startup, I am using the file c.jj that I have found among grammar files at http://java.net/projects/javacc/sources/svn/ but I found that it only has syntactic and lexical actions and no real semantics for parsing C source. Is there some other source that incorporate typedef, variables, construct functions, include files? 回答1: You could go looking for a complete grammar. Will you learn much this