On 03/02/2014 14:07, Martin Frb wrote:
On 03/02/2014 13:47, Jonas Maebe wrote:
On 03 Feb 2014, at 14:28, Martin Frb wrote:
The reason I did get to that, is because I have to reproduce the
behaviour (for fpdebug).
And when scanning/evaluating a pascal expression/statement, it works
well to handle the "." (and also []()^) as operator. So that is haw
the "." ended on the list.
Can't you use fcl-passrc (http://wiki.freepascal.org/fcl-passrc )
instead of scanning/parsing everything yourself? Or does it only
support complete source files?
The example only shows how to parse a full file.
All I need is to parse any of the following
SomeValue
SomeType
SomeFoo + Bar[1]
Bar(Abc).xyz^ // Bar may be a class, or a function
Also on top of that, I need the ability to parse "none pascal" add ons
(so they can never conflict with any identifier)
%EAX + 1
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel