Building a Ruleset from Json #280
Unanswered
ArunNKutty
asked this question in
Q&A
Replies: 1 comment
-
I believe the issue here is that you are using a rule name which has a space in it, which is not allowed in GRL syntax. There should definitely be a more readable error printed though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
package main
import (
"github.com/hyperjumptech/grule-rule-engine/ast"
"github.com/hyperjumptech/grule-rule-engine/builder"
"github.com/hyperjumptech/grule-rule-engine/engine"
"github.com/hyperjumptech/grule-rule-engine/pkg"
)
func main() {
}
I am getting the following error :
ERRO[0000] GRL error, after '[rule Age]' and then unexpected 'Check' lib=grule struct=GruleParserV3Listener
ERRO[0000] GRL syntax error. got got 1 error(s) in grl the script lib=grule-rule-engine package=builder
ERRO[0000] 0 : grl error on 1:9 extraneous input 'Check' expecting {'{', SALIENCE, DQUOTA_STRING, SQUOTA_STRING} lib=grule-rule-engine package=builder
Any help is highly appreciated
Beta Was this translation helpful? Give feedback.
All reactions