예제 #1
0
 public ParserGen(Parser parser)
 {
     tab = parser.tab;
     errors = parser.errors;
     trace = parser.trace;
     buffer = parser.scanner.buffer;
     errorNr = -1;
     usingPos = null;
 }
예제 #2
0
        string tokenString; // used in declarations of literal tokens

        #endregion Fields

        #region Constructors

        /*-------------------------------------------------------------------------*/
        public Parser(Scanner scanner)
        {
            this.scanner = scanner;
            errors = new Errors();
        }
예제 #3
0
 public DFA(Parser parser)
 {
     this.parser = parser;
     tab = parser.tab;
     errors = parser.errors;
     trace = parser.trace;
     firstState = null; lastState = null; lastStateNr = -1;
     firstState = NewState();
     firstMelted = null; firstComment = null;
     ignoreCase = false;
     dirtyDFA = false;
     hasCtxMoves = false;
 }
예제 #4
0
파일: Tab.cs 프로젝트: ggrov/tacny
	public Tab(Parser parser) {
		this.parser = parser;
		trace = parser.trace;
		errors = parser.errors;
		eofSy = NewSym(Node.t, "EOF", 0);
		dummyNode = NewNode(Node.eps, null, 0);
		literals = new Hashtable();
	}
예제 #5
0
 protected AbstractParserGen(Parser parser)
 {
     this.errors = parser.errors;
     this.buffer = parser.scanner.buffer;
     this.tab = parser.tab;
 }
예제 #6
0
        BitArray visited; //!< mark list for graph traversals

        #endregion Fields

        #region Constructors

        public Tab(Parser parser)
        {
            this.parser = parser;
            errors = parser.errors;
            buffer = parser.scanner.buffer;
            eofSy = NewSym(Node.t, "EOF", 0);
            dummyNode = NewNode(Node.eps);
            ignored  = new CharSet();
            literals = new Hashtable();
        }
예제 #7
0
 public ParserOutput(Tab tab, Errors errors, TextWriter trace, Buffer buffer, Position uspos)
 {
     this.tab = tab;
     this.errors = errors;
     this.trace = trace;
     this.buffer = buffer;
     this.usingPos = uspos;
     errorNr = -1;
 }