goccmack / gocc

Parser / Scanner Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I'm struggling to parse this

dequeb opened this issue · comments

commented

Hi,

I extracted this grammar from Microsoft documentation. It has many points that I don't know how to process properly:

  • identifiers are not case sensitive
  • user-created identifier must not reuse reserved identifier
  • there are rules that said a token must start on a new line
  • there are rules that said a token must be a character except some others
  • the priority of expression operators is express as a comment in the documentation, not in the langage definition.

Moreover, the result is quite long. Thanks in advance for taking the time to look at it.

basic.bnf.txt

Can you possible create a smallest possible reproducible issue, so we can answer one question at a time?