Commit 31790179 authored by Administrator's avatar Administrator
Browse files

fixed column/line reset while backtracking

parent 9ed1591b
......@@ -236,6 +236,8 @@ public class ParserBase implements mouse.runtime.CurrentRule
{
Phrase p = pop(); // Pop the finishing Phrase
pos = p.start; // Do not consume input
line = p.startline;
column = p.startcolumn;
// Finalize p:
p.end = pos; // Reset end of text
p.success = false; // Indicate p failed
......@@ -255,6 +257,8 @@ public class ParserBase implements mouse.runtime.CurrentRule
{
Phrase p = pop(); // Pop the finishing Phrase
pos = p.start; // Do not consume input
line = p.startline;
column = p.startcolumn;
// Finalize p:
p.end = pos; // Reset end of text
p.success = false; // Indicate p failed
......@@ -272,6 +276,8 @@ public class ParserBase implements mouse.runtime.CurrentRule
{
Phrase p = pop(); // Pop the finishing Phrase
pos = p.start; // Do not consume input
line = p.startline;
column = p.startcolumn;
// Finalize p:
p.end = pos; // Reset end of text
p.success = false; // Indicate p failed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment