compiler/libec: Exported Lexer from libec
authorJerome St-Louis <jerome@ecere.com>
Mon, 29 Jul 2013 09:09:41 +0000 (05:09 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 29 Jul 2013 09:09:41 +0000 (05:09 -0400)
compiler/libec/src/ast.ec

index bc47837..56b50c2 100644 (file)
@@ -2950,6 +2950,7 @@ public void OutputIntlStrings()
 
 default extern OldList * ast;
 default extern int yyparse ();
+default extern int yylex ();
 
 public void SetAST(OldList * list) { ast = list; }
 public OldList * GetAST() { return ast; }
@@ -2957,3 +2958,13 @@ public void ParseEc()
 {
    yyparse();
 }
+
+public int LexEc()
+{
+   return yylex();
+}
+
+public const char * GetYYText()
+{
+   return yytext;
+}