-
Notifications
You must be signed in to change notification settings - Fork 72
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
"unbalanced parenthesis" error Python 3.8 #134
Comments
I think I found the solution. It seems to generate a conflict between the ! array and the parentheses. For example,
I had to do it like this.
Another detail to keep in mind, I publish this because in rivescript tutorial does not clarify in the Array section, as far as I know. Maybe it will help someone. Greetings! |
Yeah, using parenthesis inside of RiveScript is heavily powered by regular expressions under the hood, but the user-facing language uses "simplified regular expressions" for triggers, which makes it easy to program a bot without the overwhelming complexity of raw regexps. In this case, the Probably the RiveScript syntax checker should look for parenthesis in an array definition and consider it a syntax error at parse time. |
I've got a couple of .rive files that have quite a few triggers. And they work. But sometimes this error appears instead of giving me the reply. And I can't find the solution, I'm not really sure what's going on.
I leave the message that I figure:
I am testing and There is no criterion by which this appears, usually when trigger change (not always)
Any solution?
The text was updated successfully, but these errors were encountered: