]> granicus.if.org Git - yasm/commit
Massive restructuring of lexing and parsing (NASM-compatible parser).
authorPeter Johnson <peter@tortall.net>
Fri, 9 Aug 2002 05:43:03 +0000 (05:43 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 9 Aug 2002 05:43:03 +0000 (05:43 -0000)
commit3320945f957c183c88ebff3954f914e992a329c1
tree68b138ae74f3b327b5ce6fc010745f50eed4c09e
parent00497afd8f656f75eb88c37290f551e45810f4f4
Massive restructuring of lexing and parsing (NASM-compatible parser).
Bugzilla Bug#3.  Not all instructions are parsed yet, so this is actually a
minor feature regression from the user side, but this commit lays the framework
for much easier additions of new assembler syntaxes and architectures.  The
re2c tool is now used to generate the lexers, as it's much more flexibly
function-oriented than lex.
 - nasm-bison.y is a repocopy+modify of nasm/bison.y.in.
 - x86arch.h now includes all of x86-int.h

svn path=/trunk/yasm/; revision=670
51 files changed:
.cvsignore
frontends/yasm/yasm.c
libyasm/arch.c
libyasm/arch.h
libyasm/bytecode.c
libyasm/bytecode.h
libyasm/expr-int.h
libyasm/expr.c
libyasm/expr.h
libyasm/tests/bytecode_test.c
libyasm/tests/memexpr_test.c
modules/arch/x86/Makefile.inc
modules/arch/x86/instrs.dat [deleted file]
modules/arch/x86/x86-int.h [deleted file]
modules/arch/x86/x86arch.c
modules/arch/x86/x86arch.h
modules/arch/x86/x86bc.c
modules/arch/x86/x86expr.c
modules/arch/x86/x86id.re [new file with mode: 0644]
modules/parsers/nasm/Makefile.inc
modules/parsers/nasm/bison.y.in [deleted file]
modules/parsers/nasm/gen_instr.pl [deleted file]
modules/parsers/nasm/nasm-bison.y
modules/parsers/nasm/nasm-parser.c
modules/parsers/nasm/nasm-token.re [new file with mode: 0644]
modules/parsers/nasm/token.l.in [deleted file]
src/arch.c
src/arch.h
src/arch/x86/Makefile.inc
src/arch/x86/instrs.dat [deleted file]
src/arch/x86/x86-int.h [deleted file]
src/arch/x86/x86arch.c
src/arch/x86/x86arch.h
src/arch/x86/x86bc.c
src/arch/x86/x86expr.c
src/arch/x86/x86id.re [new file with mode: 0644]
src/bytecode.c
src/bytecode.h
src/expr-int.h
src/expr.c
src/expr.h
src/main.c
src/parsers/nasm/Makefile.inc
src/parsers/nasm/bison.y.in [deleted file]
src/parsers/nasm/gen_instr.pl [deleted file]
src/parsers/nasm/nasm-bison.y
src/parsers/nasm/nasm-parser.c
src/parsers/nasm/nasm-token.re [new file with mode: 0644]
src/parsers/nasm/token.l.in [deleted file]
src/tests/bytecode_test.c
src/tests/memexpr_test.c