示例#1
0
 public Contextualiser(LetCommand root)
 {
     _compilerUtils = CompilerUtils.getInstance();
     this.root      = root;
     declaList      = new LinkedList <LinkedList <DeclarationCommand> >();
     table          = new Dictionary <string, string>();
 }
示例#2
0
        public Parser(LinkedList <Line> code)
        {
            _compilerUtils = CompilerUtils.getInstance();
            Scanner scan = new Scanner(code);

            TokenList = scan.getTokens();
            parse();
        }
示例#3
0
 public static CompilerUtils getInstance()
 {
     if (_compilerUtils == null)
     {
         _compilerUtils = new CompilerUtils();
     }
     return(_compilerUtils);
 }