Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb5f2e1
)
compiler/libec: Exported Lexer from libec
author
Jerome St-Louis
<jerome@ecere.com>
Mon, 29 Jul 2013 09:09:41 +0000
(
05:09
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Mon, 29 Jul 2013 09:09:41 +0000
(
05:09
-0400)
compiler/libec/src/ast.ec
patch
|
blob
|
history
diff --git
a/compiler/libec/src/ast.ec
b/compiler/libec/src/ast.ec
index
bc47837
..
56b50c2
100644
(file)
--- a/
compiler/libec/src/ast.ec
+++ b/
compiler/libec/src/ast.ec
@@
-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;
+}