예제 #1
0
 public SjAsmPaser(Scanner scanner)
     : base(scanner)
 {
     _directives.Init();
     _devices.Init();
     _encoding.Init();
 }
예제 #2
0
        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();
        }
예제 #3
0
 public Z80Parser(Scanner scanner)
     : base(scanner)
 {
     _opCods.Init();
     _reg8.Init();
     _reg16.Init();
     _cond.Init();
     _jrCond.Init();
     _specReg.Init();
     _pseudoOps.Init();
 }
예제 #4
0
 private Scanner GetScanner(string file)
 {
     var res = new Scanner($".\\Content\\{file}.asm");
     return res;
 }
예제 #5
0
 public Parser(Scanner scanner)
     : base(scanner, new ASTBuilder(scanner.FileName))
 {
     _keywords.Init();
 }
예제 #6
0
 private Parser GetParserSjAsm(string file)
 {
     var scanner = new Scanner($".\\Content\\Samples\\{file}.asm");
     var res = new SjAsmPaser(scanner);
     return res;
 }
예제 #7
0
 private Parser GetParserZ80(string file)
 {
     var scanner = new Scanner($".\\Content\\{file}.asm");
     var res = new Z80Parser(scanner);
     return res;
 }
예제 #8
0
 protected ParserBase(Scanner scanner, ASTBuilder ast)
 {
     _scanner = scanner;
     AST = ast;
 }