kallemooo / Asap2

Asap2 parser.
MIT License
38 stars 21 forks source link

Identifier RESERVED (PrgType) cannot be parsed inside MEMORY_SEGMENT #8

Closed AndreasLehnerCDE closed 2 years ago

AndreasLehnerCDE commented 4 years ago

The grammar is identifying the RESERVED PrgType as token which makes the parser fail. E.x.: (I renamed the segment name and description) /begin MEMORY_SEGMENT nameofsegment "description" RESERVED

The error from the library: … Line: 926 : Row: 66 : Syntax error, unexpected RESERVED, expecting IDENTIFIER

CoppaLoccioni commented 4 years ago

@AndreasLehnerCDE Have you found a solution for this?

AndreasLehnerCDE commented 4 years ago

@CoppaLoccioni No I did not find a solution. Do you have this problem as well?

CoppaLoccioni commented 4 years ago

@AndreasLehnerCDE yes same issue

kallemooo commented 2 years ago

This problem requires special treatment in parser grammar. A patch for the problem is pending.