Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iguana backend for Rascal #50

Open
Pogozhelskaya opened this issue Oct 31, 2022 · 4 comments
Open

Iguana backend for Rascal #50

Pogozhelskaya opened this issue Oct 31, 2022 · 4 comments

Comments

@Pogozhelskaya
Copy link

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

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

@afroozeh
Copy link
Contributor

afroozeh commented Nov 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants