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

Instaparse example #4

Closed
maacl opened this issue Nov 15, 2015 · 4 comments
Closed

Instaparse example #4

maacl opened this issue Nov 15, 2015 · 4 comments

Comments

@maacl
Copy link

maacl commented Nov 15, 2015

This is a great example of the power of both instaparse and Clara.

Have you given any thought to how one could support end-user authoring of the DSL? It would be very cool if one could use the parser/grammar to somehow support structured editing where all possible options are shown to the user.

@rbrush
Copy link
Contributor

rbrush commented Nov 15, 2015

Hi Martin,

I think this is entirely possible, but it's not clear to me that Instaparse offers enough introspection of the grammar to build an editor on top of it. (I'm not an Instaparse export, though.) I definitely think there is value in exploring this.

We do have some other options to consider as well. One is to have Instaparse convert the grammar into a simple, intermediate structure that we could easily manipulate with code (and build an editor to do so). I posted some thoughts on this in the Clara Google Group:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/clara-rules/ME7CKVdBMqg/jvCjd-khCgAJ

Would it be alright if we moved any follow up conversations over to that group? It seems like a better fit than issues. (I had neglected to link to that group in the blog post, but I have addressed that now.)

Hopefully this makes sense!

-Ryan

@maacl
Copy link
Author

maacl commented Nov 15, 2015

Ryan,

Thanks. Happy to move this to the Google group. Looks like Alan is already
working on something similar.

Martin

On Sun, Nov 15, 2015 at 8:08 PM Ryan Brush notifications@github.com wrote:

Hi Martin,

I think this is entirely possible, but it's not clear to me that
Instaparse offers enough introspection of the grammar to build an editor on
top of it. (I'm not an Instaparse export, though.) I definitely think there
is value in exploring this.

We do have some other options to consider as well. One is to have
Instaparse convert the grammar into a simple, intermediate structure that
we could easily manipulate with code (and build an editor to do so). I
posted some thoughts on this in the Clara Google Group:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/clara-rules/ME7CKVdBMqg/jvCjd-khCgAJ

Would it be alright if we moved any follow up conversations over to that
group? It seems like a better fit than issues. (I had neglected to link to
that group in the blog post, but I have addressed that now.)

Hopefully this makes sense!

-Ryan


Reply to this email directly or view it on GitHub
#4 (comment)
.

@WilliamParker
Copy link
Collaborator

@rbrush it looks like you added an Instaparse example at d38c62f#diff-4c2f6550719134ad3e82a5510b6ff83d a couple weeks after this issue was logged. Do you see anything left to do here or can this issue be closed?

@rbrush
Copy link
Contributor

rbrush commented Jan 25, 2017

No, I think we're good. I'll close this and we can open a new issue if anything more comes up.

@rbrush rbrush closed this as completed Jan 25, 2017
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