コード例 #1
0
ファイル: Grammar.cs プロジェクト: hozuki/irony-vs
 //Constructs the error message in situation when parser has no available action for current input.
 // override this method if you want to change this message
 protected virtual string ConstructParserErrorMessage(ParsingContext context, StringSet expectedTerms)
 {
     if (expectedTerms.Count > 0)
     {
         return(string.Format(Resources.ErrSyntaxErrorExpected, expectedTerms.ToString(", ")));
     }
     return(Resources.ErrParserUnexpectedInput);
 }
コード例 #2
0
 //Constructs the error message in situation when parser has no available action for current input.
 // override this method if you want to change this message
 public virtual string ConstructParserErrorMessage(ParsingContext context, StringSet expectedTerms)
 {
     return(string.Format(Resources.ErrParserUnexpInput, expectedTerms.ToString(" ")));
 }
コード例 #3
0
 //Constructs the error message in situation when parser has no available action for current input.
 // override this method if you want to change this message
 public virtual string ConstructParserErrorMessage(ParsingContext context, StringSet expectedTerms)
 {
     return(string.Format(O2_Misc_Microsoft_MPL_Libs.Irony_Parser.Resources.ErrParserUnexpInput, expectedTerms.ToString(" ")));
 }