Parser Topic is solved
Parser
Hi All,
Can anyone tell me if WX contains a parser (e.g. recursive descent parser)?
I know there is wxRegEx for regular expressions, but for more complex grammar's a full parser would be nice.
regards,
Can anyone tell me if WX contains a parser (e.g. recursive descent parser)?
I know there is wxRegEx for regular expressions, but for more complex grammar's a full parser would be nice.
regards,
"Programming today is a race between software engineers striving to build bigger and better idiot-proff programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Take a look at boost::spirit
Hi,
Looked at it but it contains templates, which from the portability point of view is a no no (hence I am using wx toolset).
regards
Looked at it but it contains templates, which from the portability point of view is a no no (hence I am using wx toolset).
regards
"Programming today is a race between software engineers striving to build bigger and better idiot-proff programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Hi!
Although I'm not really sure, I guess Jorg was writing a parser or a wrapper to one. Unfortunatly his site has no link to them anymore.
Maybe ask him directly.
Although I'm not really sure, I guess Jorg was writing a parser or a wrapper to one. Unfortunatly his site has no link to them anymore.
Maybe ask him directly.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
I am working on wxLexer. It is a lexical expandable token analyzer. I did not write a recursive descendent parser yet however it can be made easier when my wxLexer is finished. It is based upon tokens that have only knowledge of a buffer and examine the input, to return back a token value when they are succesful and nothing when they are not. Every token knows the line pos and column they are found, so error reporting is made easier.
I was looking at writing wxTokenMatcher (that is why it took longer then expected to finish it) which will allow recursive rules, but is not LALR or LRn or whatever technique, it simply analyzes the tokens based upon rules.
If you want contact me directly jorgb [at] xs 4 {spam-go-away} all . nl. I will try to put the source together tonight for you ..
Regards,
- Jorgen
I was looking at writing wxTokenMatcher (that is why it took longer then expected to finish it) which will allow recursive rules, but is not LALR or LRn or whatever technique, it simply analyzes the tokens based upon rules.
If you want contact me directly jorgb [at] xs 4 {spam-go-away} all . nl. I will try to put the source together tonight for you ..
Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
spirit is very powerful. And i don't understand why you can't use it,shpric002 wrote:Hi,
Looked at it but it contains templates, which from the portability point of view is a no no (hence I am using wx toolset).
regards
with wx toolset ? You could implement your own Parserclasses with
spirit, independent from wx or any other Library.
phlox
Hi,
The latest boost::spirit does not compile under MSVC6 because of the use of templates. Probably a few other compilers would also have compiler problems.
regards
The latest boost::spirit does not compile under MSVC6 because of the use of templates. Probably a few other compilers would also have compiler problems.
regards
"Programming today is a race between software engineers striving to build bigger and better idiot-proff programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Shouldn't use such an old Compiler.shpric002 wrote:Hi,
The latest boost::spirit does not compile under MSVC6 because of the use of templates. Probably a few other compilers would also have compiler problems.
regards
There are a lot of free alternatives, even on windows.
(MingW / Free MS Compiler + Codeblocks)
Hi,
It is needed to parse a test file containing "tags" that ctags generates. Later it will be needed to parse more complicated files, that need more than a simple text search (i.e. parsing a defined language).
regards
It is needed to parse a test file containing "tags" that ctags generates. Later it will be needed to parse more complicated files, that need more than a simple text search (i.e. parsing a defined language).
regards
"Programming today is a race between software engineers striving to build bigger and better idiot-proff programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Templates are very portable, i think wx is also moving toward templates and stl. VS6 has alot of problems with c++, it uses very old c++ standards, microsoft's newer compilers are much better.shpric002 wrote:Hi,
Looked at it but it contains templates, which from the portability point of view is a no no (hence I am using wx toolset).
regards