This commit is contained in:
parent
124a15101b
commit
5e18b667ef
11 changed files with 218 additions and 230 deletions
|
@ -17,8 +17,14 @@
|
|||
-------- */
|
||||
|
||||
#include "codegen.h"
|
||||
|
||||
#ifndef _LEXER_H
|
||||
#include "lexer.h"
|
||||
#endif
|
||||
|
||||
#ifndef _PARSER_H
|
||||
#include "parser.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
|
@ -70,7 +76,7 @@ extern int parseFile(char *_filename,CTreeNode *_baseNode)
|
|||
{
|
||||
if(s_lexer.yycreate(&s_parser))
|
||||
{
|
||||
if(s_lexer.openInputFile(_filename))
|
||||
if(s_lexer.openInputFile(_filename)==true)
|
||||
{
|
||||
s_parser.setCurrentLexer(&s_lexer);
|
||||
s_parser.setBaseNode(_baseNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue