Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Johannes Luber (Maintainer)
jaluber AT gmx.de

Kunle Odutola
Unlicensed user kunle UNDERSCORE odutola AT hotmail.com

Micheal Jordan

Contents

...

For an example grammar named MyGrammar, the following table list the files that would be generated by ANTLR 3.1+ using the CSharp2 (and CSharp) target.

Panel
bgColor#FFFFFF
borderStylenone
titleMyGrammar.gborderStylenone
Code Block
grammar MyGrammar;

options
{
    language=CSharp2;
}
// rest of grammar follows
....
Panel
bgColor#FFFFFF
borderStylenone

MyGrammarLexer.cs
MyGrammarParser.cs

 

Panel
bgColor#FFFFFF
borderStylenone
titleMyGrammar.g
borderStylenone
Code Block
lexer grammar MyGrammar;

options
{
    language=CSharp2;
}
// rest of grammar follows
....
Panel
bgColor#FFFFFF
borderStylenone

MyGrammar.cs

Under ANLTR 3.0.x:
MyGrammarLexer.cs

Panel
bgColor#FFFFFF
borderStylenone
titleMyGrammar.gborderStylenone
Code Block
parser grammar MyGrammar;

options
{
    language=CSharp2;
}
// rest of grammar follows
....
Panel
bgColor#FFFFFF
borderStylenone

MyGrammar.cs

Under ANLTR 3.0.x:
MyGrammarParser.cs

Panel
bgColor#FFFFFF
borderStylenone
titleMyGrammar.gborderStylenone
Code Block
tree grammar MyGrammar;

options
{
    language=CSharp2;
}
// rest of grammar follows
....
Panel
bgColor#FFFFFF
borderStylenone

MyGrammar.cs

 

...