From da9097f944aaad7078bc0faeb5130d9f608a4c5e Mon Sep 17 00:00:00 2001
From: Michael Leuschel <leuschel@cs.uni-duesseldorf.de>
Date: Fri, 15 Mar 2019 13:19:01 +0100
Subject: [PATCH] make line and pos protected in Lexer.java

rather than private
this allows to adapt line and pos
in derived lexers so that we do not start
parsing at line 0 and position 0.
---
 src/main/resources/org/sablecc/sablecc/lexer.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/org/sablecc/sablecc/lexer.txt b/src/main/resources/org/sablecc/sablecc/lexer.txt
index 6f1938c..45b66df 100644
--- a/src/main/resources/org/sablecc/sablecc/lexer.txt
+++ b/src/main/resources/org/sablecc/sablecc/lexer.txt
@@ -39,8 +39,8 @@ public class Lexer implements ITokenListContainer
     protected State state = State.$2$;
 
     private PushbackReader in;
-    private int line;
-    private int pos;
+    protected int line;
+    protected int pos;
     private boolean cr;
     private boolean eof;
     private final StringBuffer text = new StringBuffer();
-- 
GitLab