Exception with example from README
Closed this issue · 1 comments
ralfstx commented
Running the example from the README.md leads to the following exception:
Exception in thread "main" no.ssb.vtl.script.error.SyntaxException: mismatched input 'sum' expecting {'rename', 'IDENTIFIER', 'MEASURE', 'ATTRIBUTE', 'filter', 'keep', 'fold', 'unfold', 'drop', IDENTIFIER}
Using a different name works. I'm not sure if sum
is a reserved keyword or if that's an issue with the parser.
hadrienk commented
Hi Ralf. Thank you for taking the time to report this.
Sum is indeed a reserved word, the example was written at a time the sum function was not implemented yet. I will update the README.md
Hadrien
… On 2 Oct 2017, at 20:10, Ralf Sternberg ***@***.***> wrote:
Running the example from the README.md <https://github.com/statisticsnorway/java-vtl/blob/develop/README.md> leads to the following exception:
Exception in thread "main" no.ssb.vtl.script.error.SyntaxException: mismatched input 'sum' expecting {'rename', 'IDENTIFIER', 'MEASURE', 'ATTRIBUTE', 'filter', 'keep', 'fold', 'unfold', 'drop', IDENTIFIER}
Using a different name works. I'm not sure if sum is a reserved keyword or if that's an issue with the parser.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#26>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAMp8bI5SEcam6jKIO15pRj04Jw9QUyGks5soScbgaJpZM4PrB8U>.