public SjAsmPaser(Scanner scanner) : base(scanner) { _directives.Init(); _devices.Init(); _encoding.Init(); }
static void Main(string[] args) { var scanner = new Scanner(@".\test\main.asm"); var parser = new Parser.Parser(scanner); parser.Parse(); Console.WriteLine("---END---"); Console.ReadLine(); }
public Z80Parser(Scanner scanner) : base(scanner) { _opCods.Init(); _reg8.Init(); _reg16.Init(); _cond.Init(); _jrCond.Init(); _specReg.Init(); _pseudoOps.Init(); }
private Scanner GetScanner(string file) { var res = new Scanner($".\\Content\\{file}.asm"); return res; }
public Parser(Scanner scanner) : base(scanner, new ASTBuilder(scanner.FileName)) { _keywords.Init(); }
private Parser GetParserSjAsm(string file) { var scanner = new Scanner($".\\Content\\Samples\\{file}.asm"); var res = new SjAsmPaser(scanner); return res; }
private Parser GetParserZ80(string file) { var scanner = new Scanner($".\\Content\\{file}.asm"); var res = new Z80Parser(scanner); return res; }
protected ParserBase(Scanner scanner, ASTBuilder ast) { _scanner = scanner; AST = ast; }