On Fri, Jun 2, 2017 at 12:50 PM, 'Christopher Horler' via STEPcode -
Developers Mailing List <scl...@googlegroups.com> wrote:
> The new parser is in two parts - pass 1 and pass 2.
>
> Pass 1 - retrieves all identifiers from the express file and creates a
> single linked list of POD structure of names.
>
> In order to test it I've also created a utility similar to the build process
> schemaScanner used to configure exp2cxx, called expscan
>
> I switched back to Bison and Flex, because I wanted the location tracking
> support and there may be need for a reentrant parser for use / reference
> resolution. Plus, there's been a lot of work and licence / usage guidance
> since Lemon was introduced.
Can you elaborate on this a little bit? The rewrite to use re2c/lemon
was very specifically undertaken for portability reasons... also, what
licensing issues are you seeing? My understanding was/is that re2c
and lemon are both effectively in the public domain...
--
You received this message because you are subscribed to the Google Groups "STEPcode - Developers Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scl-dev+u...@googlegroups.com.
To post to this group, send email to scl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scl-dev/6e4a5022-dff4-4d6f-a880-b5c04a0def0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "STEPcode - Developers Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scl-dev+u...@googlegroups.com.
To post to this group, send email to scl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scl-dev/FB2F1F6C-29A4-4596-900E-94DEB14F2033%40googlemail.com.
On 28 August 2017 03:12:55 BST, Mark wrote:
Is this rewrite using perplex/lemon/re2c, or flex/bison? I hope the former, as BRL-CAD put quite a bit of effort into rewriting the parser to get away from flex/bison.When you get to the stage of debugging, gdb pretty printers may be helpful. I have a few in a commit in the pretty_printers branch, https://github.com/stepcode/stepcode/commit/066d4d7809813de90d6dddc284fea505446d6418Seems like 90% of the effort with pretty printers is getting something trivial to work, so hopefully these will save effort. Your ~/.gdbinit will need a line like add-auto-load-safe-path /path/to/stepcodeRegardsMark
On Fri, Aug 25, 2017 at 11:14 AM 'Chris' via STEPcode - Developers Mailing List <scl...@googlegroups.com> wrote:
On 14 August 2017 01:36:46 BST, Mark wrote:I meant to mention... a parser rewrite would do two additional things that are of benefit:a) make the parser more precisely match the spec (bnf can be found at doc/iso-10303-11--2004.bnf)b) (probably) make American Fuzzy Lop work harder to find crashesI ran afl a few months ago and it didn't take long for it to find >130 files that cause check-express to barf.RegardsMarkI'm planning a focused effort on this next week, I'm now on my 3rd or 4th rewrite after changing my opinion about how to do it three times... after running into three roadblocks. It's about my 20th or 30th parser implementation, but by far the most complex to have a graceful approach... Which I'm trying to achieve.--
And, yes - it should conform to spec / bnf.
Also, my rewrite of exp2py which tries to output a much richer object model... Also barfs at the moment. For me this is the logical and necessary cause of action. I've only really found issues in the parser - nothing really bothers me about libexpress.
You received this message because you are subscribed to the Google Groups "STEPcode - Developers Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scl-dev+unsubscribe@googlegroups.com.
To post to this group, send email to scl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scl-dev/FB2F1F6C-29A4-4596-900E-94DEB14F2033%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
Mark,
I looked at Perplex and Lemon - please see the previous email in this thread on the subject (2nd / 3rd June)
https://groups.google.com/forum/m/#!topic/scl-dev/KONzCpiEO7o