Skip to content

Commit 092b6fb

Browse files
author
Viktor Chernev
committed
add to the last commit
1 parent 7ca68cb commit 092b6fb

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

@DescribeCompilerAPI/DescribeCompiler.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ bool Parse_LowVerbosity(TextReader reader, out Reduction root, out string FailMe
15111511
case GoldParser.Parser.ParseMessage.LexicalError:
15121512
//Cannot recognize token
15131513
FailMessage = "Lexical Error:\n" +
1514-
"Position: " + _GoldParser.CurrentPosition.Line + ", " + _GoldParser.CurrentPosition.Column + "\n" +
1514+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", " + (_GoldParser.CurrentPosition.Column + 1) + "\n" +
15151515
"Read: " + _GoldParser.CurrentToken.Data;
15161516
done = true;
15171517
break;
@@ -1523,8 +1523,8 @@ bool Parse_LowVerbosity(TextReader reader, out Reduction root, out string FailMe
15231523
foreach (GrammarSymbol s in _GoldParser.ExpectedSymbols) li.Add(s.ToString());
15241524

15251525
FailMessage = "Syntax Error:\n" +
1526-
"Position: " + _GoldParser.CurrentPosition.Line + ", "
1527-
+ _GoldParser.CurrentPosition.Column + "\n" +
1526+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", "
1527+
+ (_GoldParser.CurrentPosition.Column + 1) + "\n" +
15281528
"Read: \"" + _GoldParser.CurrentToken.Data + "\"\n" +
15291529
"Expecting: " + String.Join(" ,", li);
15301530
done = true;
@@ -1593,7 +1593,7 @@ bool Parse_MediumVerbosity(TextReader reader, out Reduction root, out string Fai
15931593
case GoldParser.Parser.ParseMessage.LexicalError:
15941594
//Cannot recognize token
15951595
FailMessage = "Lexical Error:\n" +
1596-
"Position: " + _GoldParser.CurrentPosition.Line + ", " + _GoldParser.CurrentPosition.Column + "\n" +
1596+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", " + (_GoldParser.CurrentPosition.Column + 1) + "\n" +
15971597
"Read: " + _GoldParser.CurrentToken.Data;
15981598
done = true;
15991599
break;
@@ -1605,8 +1605,8 @@ bool Parse_MediumVerbosity(TextReader reader, out Reduction root, out string Fai
16051605
foreach (GrammarSymbol s in _GoldParser.ExpectedSymbols) li.Add(s.ToString());
16061606

16071607
FailMessage = "Syntax Error:\n" +
1608-
"Position: " + _GoldParser.CurrentPosition.Line + ", "
1609-
+ _GoldParser.CurrentPosition.Column + "\n" +
1608+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", "
1609+
+ (_GoldParser.CurrentPosition.Column + 1) + "\n" +
16101610
"Read: \"" + _GoldParser.CurrentToken.Data + "\"\n" +
16111611
"Expecting: " + String.Join(" ,", li);
16121612
done = true;
@@ -1676,8 +1676,8 @@ bool Parse_HighVerbosity(TextReader reader, out Reduction root, out string Messa
16761676
//Cannot recognize token
16771677
if (Message != "") Message += " ";
16781678
Message += "Lexical Error:\n" +
1679-
"Position: " + _GoldParser.CurrentPosition.Line + ", " +
1680-
_GoldParser.CurrentPosition.Column + "\n" +
1679+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", " +
1680+
(_GoldParser.CurrentPosition.Column + 1) + "\n" +
16811681
"Read: " + _GoldParser.CurrentToken.Data;
16821682
done = true;
16831683
break;
@@ -1690,8 +1690,8 @@ bool Parse_HighVerbosity(TextReader reader, out Reduction root, out string Messa
16901690

16911691
if (Message != "") Message += " ";
16921692
Message += "Syntax Error:\n" +
1693-
"Position: " + _GoldParser.CurrentPosition.Line + ", "
1694-
+ _GoldParser.CurrentPosition.Column + "\n" +
1693+
"Position: " + (_GoldParser.CurrentPosition.Line + 1) + ", "
1694+
+ (_GoldParser.CurrentPosition.Column + 1) + "\n" +
16951695
"Read: \"" + _GoldParser.CurrentToken.Data + "\"\n" +
16961696
"Expecting: " + String.Join(" ,", li);
16971697
done = true;
File renamed without changes.

0 commit comments

Comments
 (0)