.netirony

How to ignore special characters, as it was whitespace, on Irony parser


I am implementing a parser at Irony parser and I want to skip some special characters as <,>,(,), etc.

I want the parser to treat them as the space character. How can I add some characters at the ignore list?


Solution

  • If you mean to be skipped in the parse tree, just use MarkPunctuation for example:

    MarkPunctuation("<", ">", "(", ")")