Merge pull request #22 from rharrisxtheta/antlr-patchset-1

Small patches for minor compile issues in CSharp.stg
This commit is contained in:
Sam Harwell 2013-08-28 17:06:23 -07:00
commit ac626b02a1
1 changed files with 14 additions and 0 deletions

View File

@ -64,6 +64,7 @@ using IToken = Antlr4.Runtime.IToken;
/// \<see cref="<csIdentifier.(file.parserName)>"/>.
/// \</summary>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public interface I<file.grammarName>Listener : IParseTreeListener {
<file.listenerNames:{lname |
/// \<summary>
@ -101,6 +102,7 @@ using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
/// of the available methods.
/// \</summary>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public partial class <file.grammarName>BaseListener : I<file.grammarName>Listener {
<file.listenerNames:{lname |
/// \<summary>
@ -150,6 +152,7 @@ using IToken = Antlr4.Runtime.IToken;
/// \</summary>
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public interface I<file.grammarName>Visitor\<Result> : IParseTreeVisitor\<Result> {
<file.visitorNames:{lname |
/// \<summary>
@ -182,6 +185,7 @@ using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
/// \</summary>
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public partial class <file.grammarName>BaseVisitor\<Result> : AbstractParseTreeVisitor\<Result>, I<file.grammarName>Visitor\<Result> {
<file.visitorNames:{lname |
/// \<summary>
@ -212,6 +216,14 @@ fileHeader(grammarFileName, ANTLRVersion) ::= <<
//------------------------------------------------------------------------------
// Generated from <grammarFileName> by ANTLR <ANTLRVersion>
// Unreachable code detected
#pragma warning disable 0162
// The variable '...' is assigned but its value is never used
#pragma warning disable 0219
// Missing XML comment for publicly visible type or member '...'
#pragma warning disable 1591
>>
Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
@ -220,6 +232,7 @@ Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= <<
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public <if(parser.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(parser.name)> : <superClass> {
<if(parser.tokens)>
public const int
@ -908,6 +921,7 @@ using DFA = Antlr4.Runtime.Dfa.DFA;
Lexer(lexer, atn, actionFuncs, sempredFuncs, superClass) ::= <<
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
[System.CLSCompliant(false)]
public <if(lexer.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(lexer.name)> : <superClass> {
public const int
<lexer.tokens:{k | <k>=<lexer.tokens.(k)>}; separator=", ", wrap, anchor>;