Hi all...
I'm not first time here but i'm not have acces to forum becose (stupid me)
I lost my pasword.I have in plan write one project in FB and i need
pareser example if exists somwhere here.
I have my own parser which parse trough richedit control but not trough
source code file.(is written in Creative basic but i think that can be easy
trnslated to FB code- "IF anyone interested i will show you here")
So any suggestion will be good...
all best
Aurel
File Parser
Re: File Parser
If you want to have an example of how to parse source code in FreeBASIC then may I suggest the sourcecode of the FreeBASIC compiler? You can find the compiler sources here. The files starting with the word 'parser' are the routines that take care of the actual parsing (the parsercode is spread out over many source code files).aurelVZAB wrote:Hi all...
I'm not first time here but i'm not have acces to forum becose (stupid me)
I lost my pasword.I have in plan write one project in FB and i need
pareser example if exists somwhere here.
I have my own parser which parse trough richedit control but not trough
source code file.(is written in Creative basic but i think that can be easy
trnslated to FB code- "IF anyone interested i will show you here")
So any suggestion will be good...
all best
Aurel
-
AGS...
I need parser example in Free Basic code not in C becose i dont know
make programs in C(I'm not C programmer- i hope you know what i mean)
Thanks anyway.
I need parser example in Free Basic code not in C becose i dont know
make programs in C(I'm not C programmer- i hope you know what i mean)
Thanks anyway.
-
WOW ... i dont know that....OK
I will search them in Free basic folder.
I will search them in Free basic folder.
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
To be honest, I think the FBC code will probably be quite tough going. I'd probably just try searching the net for a simple parser. There are probably several simple BASIC parsers/compilers, written in various flavours of BASIC. (Some may even be advanced enough to compile themselves.)
yetifoot has written a relatively simple BASIC->C compiler in FB, which you might find useful:
http://www.freebasic.net/forum/viewtopic.php?t=12788
yetifoot has written a relatively simple BASIC->C compiler in FB, which you might find useful:
http://www.freebasic.net/forum/viewtopic.php?t=12788
-
Thanks on link counting_pine i will try...