Charles's Bolg
2013年4月9日 星期二
parser - Flex & Bison
加入 %option c++在xxx.l檔的第一行
實作yyFlexLexer::yywrap()在xxx.l的c++ code 區
產生lex.yy.cc而非lex.yy.c,且指令變成flex -+ xxx.l
在main.cpp #include "FlexLexer.h"
之後就使用class yyFlexLexer
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言