iguana-parser / iguana

prototype parser run-time, back-end for different kinds of parser generators, including rascal.
51 stars 15 forks source link

Iguana backend for Rascal #50

Open Pogozhelskaya opened 1 year ago

Pogozhelskaya commented 1 year ago

Hello! I'm trying to run Iguana backend for Rascal to evaluate it on Python 3.4. Can you, please, provide an instruction how to do it using Eclipse?

jurgenvinju commented 1 year ago

Hi @Pogozhelskaya ; how cool! But I haven't tried it at all yet on anything. This code is "hot from the press", and I', busy evaluating its correctness with regression testing. Don't you want to wait until we've ironed out the issues? Or would you like to help with this initial testing process? Both are great.

afroozeh commented 1 year ago

Hi @Pogozhelskaya! Adding to what @jurgenvinju said, we're working on a new integration of Iguana with Rascal (https://github.com/cwi-swat/rascal-iguana) which is in a very early stage. If you are referring to this file (https://github.com/iguana-parser/grammars/blob/master/src/python/specification/Python.rsc), this is very old and does not run any more as it relied on a very old branch of Rascal... Also this is just the specification grammar, and cannot parse layout sensitive Python code. We just used some parts of this grammar to test with the data-dependent grammars that Iguana supported. If you noticed, this summer I had more time and could work a bit more on Iguana and I plan to convert all of those grammars to the Iguana syntax (which is very similar to the Rascal syntax). What's your goal here? Do you want to parse Python with Iguana or want to try parsing it and then using Rascal for some processing? If you just want to parse Python using Iguana, I can help you convert this grammar and get you started until we finish the work on Rascal-Iguana bridge. Also, please note that the first version of the Rascal-Iguana bridge will not contain offside and other layout sensitive constructs, so that may take a while. So please let us know what you're trying to achieve and we'll help you get started.

Pogozhelskaya commented 1 year ago

Thanks for response! As for the goal, I want to parse Python using Iguana and would welcome your help.

afroozeh commented 1 year ago

Give me a couple of days, I need to finish some ongoing work and then I'll provide you with something to get you started.