javacc 6 生成 C++

cmd> java -cp C:\javacc-6.0\bin\lib\javacc.jar jjtree _.jjt
cmd> java -cp C:\javacc-6.0\bin\lib\javacc.jar javacc _.jj

options {
JAVA_UNICODE_ESCAPE = true;
OUTPUT_LANGUAGE = "c++";
NAMESPACE = "adder_parser";
OUTPUT_DIRECTORY = "gen";
//STATIC = false; // ignored by c++
}

http://stackoverflow.com/questions/18674474/setting-javacc-to-work-with-command-prompt

http://swimminginbits.blogspot.jp/2013/03/javacc-to-generate-c-code.html

你可能感兴趣的:(Javacc,javacc)