yacc - Yet Another Compiler Compiler
-
Hi,
ich suche ein yacc c++ grundgeruest (mit AST erstellung) ...die meisten beispeile mit yacc sind in c geschrieben...
wie kann ich statt FILE * yyin; yacc einen fstream handle uebergeben?
LG Rocko
-
edit: flex++ und bison++ scheint fuer c++ zu sein:
http://www.mario-konrad.ch/wiki/doku.php?id=programming:flexbison:flexppbisonpptrotzdem suche ich noch ein paar c++ examples fuer yacc...
-
Nach einer kurzen Google Suche "yacc generate c++", stieß ich auf: https://www.mkssoftware.com/docs/man1/mks_yacc.1.asp
yacc can generate parsers in C or C++ [...]. The language in use determines the name of the file containing the prototype code, and the name of the code file.