forked from jasder/antlr
Merge pull request #22 from rharrisxtheta/antlr-patchset-1
Small patches for minor compile issues in CSharp.stg
This commit is contained in:
commit
ac626b02a1
|
@ -64,6 +64,7 @@ using IToken = Antlr4.Runtime.IToken;
|
||||||
/// \<see cref="<csIdentifier.(file.parserName)>"/>.
|
/// \<see cref="<csIdentifier.(file.parserName)>"/>.
|
||||||
/// \</summary>
|
/// \</summary>
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public interface I<file.grammarName>Listener : IParseTreeListener {
|
public interface I<file.grammarName>Listener : IParseTreeListener {
|
||||||
<file.listenerNames:{lname |
|
<file.listenerNames:{lname |
|
||||||
/// \<summary>
|
/// \<summary>
|
||||||
|
@ -101,6 +102,7 @@ using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
|
||||||
/// of the available methods.
|
/// of the available methods.
|
||||||
/// \</summary>
|
/// \</summary>
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public partial class <file.grammarName>BaseListener : I<file.grammarName>Listener {
|
public partial class <file.grammarName>BaseListener : I<file.grammarName>Listener {
|
||||||
<file.listenerNames:{lname |
|
<file.listenerNames:{lname |
|
||||||
/// \<summary>
|
/// \<summary>
|
||||||
|
@ -150,6 +152,7 @@ using IToken = Antlr4.Runtime.IToken;
|
||||||
/// \</summary>
|
/// \</summary>
|
||||||
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
|
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public interface I<file.grammarName>Visitor\<Result> : IParseTreeVisitor\<Result> {
|
public interface I<file.grammarName>Visitor\<Result> : IParseTreeVisitor\<Result> {
|
||||||
<file.visitorNames:{lname |
|
<file.visitorNames:{lname |
|
||||||
/// \<summary>
|
/// \<summary>
|
||||||
|
@ -182,6 +185,7 @@ using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
|
||||||
/// \</summary>
|
/// \</summary>
|
||||||
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
|
/// \<typeparam name="Result">The return type of the visit operation.\</typeparam>
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public partial class <file.grammarName>BaseVisitor\<Result> : AbstractParseTreeVisitor\<Result>, I<file.grammarName>Visitor\<Result> {
|
public partial class <file.grammarName>BaseVisitor\<Result> : AbstractParseTreeVisitor\<Result>, I<file.grammarName>Visitor\<Result> {
|
||||||
<file.visitorNames:{lname |
|
<file.visitorNames:{lname |
|
||||||
/// \<summary>
|
/// \<summary>
|
||||||
|
@ -212,6 +216,14 @@ fileHeader(grammarFileName, ANTLRVersion) ::= <<
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Generated from <grammarFileName> by ANTLR <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) ::= <<
|
Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
|
||||||
|
@ -220,6 +232,7 @@ Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
|
||||||
|
|
||||||
Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= <<
|
Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= <<
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public <if(parser.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(parser.name)> : <superClass> {
|
public <if(parser.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(parser.name)> : <superClass> {
|
||||||
<if(parser.tokens)>
|
<if(parser.tokens)>
|
||||||
public const int
|
public const int
|
||||||
|
@ -908,6 +921,7 @@ using DFA = Antlr4.Runtime.Dfa.DFA;
|
||||||
|
|
||||||
Lexer(lexer, atn, actionFuncs, sempredFuncs, superClass) ::= <<
|
Lexer(lexer, atn, actionFuncs, sempredFuncs, superClass) ::= <<
|
||||||
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "<file.ANTLRVersion>")]
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
public <if(lexer.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(lexer.name)> : <superClass> {
|
public <if(lexer.abstractRecognizer)>abstract <endif>partial class <csIdentifier.(lexer.name)> : <superClass> {
|
||||||
public const int
|
public const int
|
||||||
<lexer.tokens:{k | <k>=<lexer.tokens.(k)>}; separator=", ", wrap, anchor>;
|
<lexer.tokens:{k | <k>=<lexer.tokens.(k)>}; separator=", ", wrap, anchor>;
|
||||||
|
|
Loading…
Reference in New Issue