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

json example ? #lazyweb #1

Closed
xquery opened this issue Feb 17, 2014 · 4 comments
Closed

json example ? #lazyweb #1

xquery opened this issue Feb 17, 2014 · 4 comments

Comments

@xquery
Copy link

xquery commented Feb 17, 2014

have you had a chance to see what json def looks like in invizxml ?

I ask only because the css example is not fully fledged and its a little 'hunt and peck' to get the more complicated tokens defined.

thx in advance

@jpcs
Copy link
Owner

jpcs commented Feb 18, 2014

The Invisible XML paper doesn't really allow you to create a full parser for vocabs easily as it's missing a couple of features like better support for tokens and whitespace. I think I'm just going to make a decision on some extra syntax and add it to allow those things.

The XQuery function version of grammars can do that though. The syntax is kind of verbose, but you can use gr:char-range() or gr:codepoint-range() combined with the other grammar operators like gr:choice() and gr:one-or-more(). For instance look at the rule for "V" in samples/test.xq.

@jpcs
Copy link
Owner

jpcs commented Feb 18, 2014

I'll add the examples I did for demo jam when I get a moment. It would also be easy enough to add a JSON example I think.

@jpcs
Copy link
Owner

jpcs commented Feb 18, 2014

I've added a couple more samples now.

@jpcs jpcs closed this as completed Feb 18, 2014
@xquery
Copy link
Author

xquery commented Feb 18, 2014

ah thanks for that ... its very to clear to me now, this is gonna be big ;)

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

2 participants