I'm trying to wtire sort of CSharp grammar in ANTLR4. Here is the grammar: http://pastie.org/9197255
Here is the test class:
public class Test
{
public static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
And here is the error: line 1:0 mismatched input 'public' expecting ACCESS_MODIFIER
What's the problem?