Skip to content

How to evaluate syntactical correctness of EPL patterns #193

Answered by kolovos
folmate asked this question in Q&A
Discussion options

You must be logged in to vote

active is a keyword in EPL, which is why you get the no viable input error message. To fix this you'd need to escape active using backticks (i.e. route.`active`). When you call module.parse() the expectation is that you then check for the presence of parse errors using module.getParseProblems() before you attempt to execute the module. If you don't do this and execute a module that has parse errors, you may run into unexpected behaviour.

Regarding the second issue you are describing, essentially you are looking for a static analyser for EPL. We're working on a static analyser for Epsilon in https://github.com/epsilonlabs/epsilon-with-lsp/ but it doesn't cover EPL yet.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by folmate
Comment options

You must be logged in to vote
1 reply
@kolovos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants