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

Expression language: Whitespace aware parser required in rules language for assertion separation #1

Open
pieterbos opened this issue Jul 5, 2016 · 0 comments

Comments

@pieterbos
Copy link

The current rules language requires a whitespace aware parser in two places. This issue is about the separation between assertions. Say you have the following rules syntax:

/path/to/value/one = /path/to/value/two 
/path/to/value/three = /path/to/value/four

Without a whitespace-aware parser, it's impossible to detect the beginning and end of the second path reference: is it /path/to/value/two and /path/to/value/three? or /path and /path/to/value/two/path/to/value/three? Or /path/to/value /two/path/to/value/three

I would propose a ';' as separation between assertions. This solves this problem and it quite easy to type. Also it allows you to write statements over multiple lines. But more solutions than this one are possible.

@pieterbos pieterbos changed the title Whitespace aware parser required in rules language for assertion separation Expression language: Whitespace aware parser required in rules language for assertion separation Jul 5, 2016
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

1 participant