6502.org http://forum.6502.org/ |
|
[125] 6502 assembly yacc and lex files http://forum.6502.org/viewtopic.php?f=7&t=380 |
Page 1 of 1 |
Author: | doofus37 [ Wed Sep 12, 2001 9:08 pm ] |
Post subject: | [125.1] 6502 assembly yacc and lex files |
Does anybody have yacc and lex files for a reasonable 6502 assembly grammar? Also, how would you implement macros with yacc/lex? Thanks |
Author: | GARTHWILSON [ Thu Sep 13, 2001 2:01 am ] |
Post subject: | [125.2] 6502 assembly yacc and lex files |
>Does anybody have yacc and lex files for a >reasonable 6502 assembly grammar? Also, how >would you implement macros with yacc/lex? What do yacc and lex stand for? In my work, lex has stood for language extension and lexical order, but I don't think that's what you mean. Garth |
Author: | doofus37 [ Thu Sep 13, 2001 1:25 pm ] |
Post subject: | [125.3] 6502 assembly yacc and lex files |
Lex and Yacc are utilities (originally from unix) for defining a language grammar and lexigraphic analyzer. With a simple syntax, you feed yacc with a language grammar, lex with language tokens, and together, they generate C code to parse text files. -ss |
Author: | aofl [ Sun Sep 16, 2001 8:10 pm ] |
Post subject: | [125.4] 6502 assembly yacc and lex files |
lex is short for Lexical Analyzer and yacc stands for Yet Another Compiler Compiler. There are GNU versions of these utilities called flex and bison. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |