mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2208 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4a44f1001e
commit
7108f38ff1
3 changed files with 29 additions and 20 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
9
uppdev/CParserb/test.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
id1 a045905 id2
|
||||
tab1
|
||||
x tab2
|
||||
xx tab3
|
||||
xxx tab4
|
||||
xxxx tab5
|
||||
xxxxx tab6
|
||||
t7 ta9 ta10 t11
|
||||
t12
|
||||
Loading…
Add table
Add a link
Reference in a new issue