My Lex/Racc Test Simple Calculator : example01-calc C Language Parser : example03-c-lang Refer to A simple start in Chinese: Racc Official site/source: rexical github racc github The example in the source code and wiki of the repo is very helpful.