You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to create a basic Latex parser. I saw some implementations in javascript using PEG.js. Now I am using Pegasus to create the parser in C#.
Unfortunatly I have some issues. I do not fully understand the outputs from the rules.
For example I want to recognize strings containing lower case letters.
str= c:[a-z]+ { c }
And I get the following error: Cannot implicitly convert type 'System.Collections.Generic.IList' to 'string'
What exactly is the output of repeated occurrence of expression (in this case c)? Is it a string? an array of chars? Is "str= c:[a-z]+ { c }" even valid?
The text was updated successfully, but these errors were encountered:
I tried the following: decimal = value:([a-zA-Z]+"") { value }
and got errors.
Next I have replaced "decimal" by "_decimal":
_decimal = value:([a-zA-Z]+"") { value }
and could recognize strings.
Are some names reserved?
And how to get rid of the quotation mark in
_decimal = value:([a-zA-Z]+"") { value }
?
Hi, I am trying to create a basic Latex parser. I saw some implementations in javascript using PEG.js. Now I am using Pegasus to create the parser in C#.
Unfortunatly I have some issues. I do not fully understand the outputs from the rules.
For example I want to recognize strings containing lower case letters.
str= c:[a-z]+ { c }
And I get the following error:
Cannot implicitly convert type 'System.Collections.Generic.IList' to 'string'
What exactly is the output of repeated occurrence of expression (in this case c)? Is it a string? an array of chars? Is "str= c:[a-z]+ { c }" even valid?
The text was updated successfully, but these errors were encountered: