mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
17 lines
317 B
C++
17 lines
317 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
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();
|
|
}
|
|
}
|