git-svn-id: svn://ultimatepp.org/upp/trunk@2208 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-03-10 16:00:46 +00:00
parent 4a44f1001e
commit 7108f38ff1
3 changed files with 29 additions and 20 deletions

View file

@ -2,18 +2,16 @@
using namespace Upp;
int compactcommandline()
/**/{
int goo;
go
int i,j;
}
void MyTest() {}
CONSOLE_APP_MAIN
{
MyTes(*)
String s = LoadFile(GetDataFile("test.txt"));
CParser p(s);
while(!p.IsEof()) {
if(p.IsId()) {
CParser::Pos pos = p.GetPos();
DLOG(p.ReadId() << ": " << pos.line << ", " << pos.GetColumn());
}
else
p.SkipTerm();
}
}

View file

@ -1,8 +1,10 @@
uses
Core;
file
CParserb.cpp optimize_speed;
mainconfig
"" = "";
uses
Core;
file
test.txt,
CParserb.cpp optimize_speed;
mainconfig
"" = "";

9
uppdev/CParserb/test.txt Normal file
View file

@ -0,0 +1,9 @@
id1 a045905 id2
tab1
x tab2
xx tab3
xxx tab4
xxxx tab5
xxxxx tab6
t7 ta9 ta10 t11
t12