The name 'alternatives' does not exist in the current context
Closed this issue · 1 comments
mingodad commented
Rebuilding the test folder and trying to compile give the error shown bellow, it seems that the -->beginalternativescode
is not been transferred to the final parser.
../Coco.exe -frames .. inheritance.atg
Coco/R (Jul 28, 2016)
checking
Inheritance deletable
TDBs deletable
LL1 warning in TDBs: var is start & successor of deletable structure
LL1 warning in TDBs: "call" is start & successor of deletable structure
parser + scanner generated
grammar scanned by using Buffer
0 error(s) detected
csc /out:inheritance.exe /t:exe main.cs Scanner.cs Parser.cs
Microsoft (R) Visual C# Compiler version 3.6.0-4.20224.5 (ec77c100)
Copyright (C) Microsoft Corporation. All rights reserved.
Parser.cs(155,24): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(159,28): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(228,3): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(335,27): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(347,27): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(401,3): error CS0103: The name 'alternatives' does not exist in the current context
Parser.cs(409,23): error CS0103: The name 'alternatives' does not exist in the current context
mingodad commented
My bad I didn't added that -ac
option when processing the grammar, it should be:
../Coco.exe -ac -frames .. inheritance.atg