kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.57k stars 231 forks source link

How to add newline in the grammar #568

Open tanmay9dutta opened 3 years ago

tanmay9dutta commented 3 years ago

Hi I am trying to add new line but I do not get the output, it is showing below error:

1 (select 2 "col1,col2") ^

Unexpected "\n". Instead, I was expecting to see one of the following:

I added newline as

nl -> [\n]:*

Please help.