2 // GenericParser.cs: The Base Parser for the Mono compilers
4 // Author: A Rafael D Teixeira (rafaelteixeirabr@hotmail.com)
6 // Licensed under the terms of the GNU GPL
8 // Copyright (C) 2001 Ximian, Inc.
13 namespace Mono.Languages
15 using System.Collections;
18 /// Base class to support multiple Jay generated parsers
20 public abstract class GenericParser
22 // Name of the file we are parsing
25 // Input stream to parse from.
26 public System.IO.Stream input;
28 public abstract void parse ();
30 public virtual string[] extensions()
32 string [] list = { ".cs" };
36 public GenericParser()
39 // DO NOTHING: Derived classes should do their iniatilization here duties
43 protected bool yacc_verbose_flag = false;
45 public bool yacc_verbose
49 yacc_verbose_flag = value;
54 return yacc_verbose_flag;