Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Fresh Wind

Put me down as a manly wimpy wuss! I write compilers using lex and yacc, in BNF and LALR(1) grammars to pass my spare time!


143 posted on 06/05/2015 3:44:39 PM PDT by lurked_for_a_decade (Imagination is more important than knowledge!)
[ Post Reply | Private Reply | To 75 | View Replies ]


To: lurked_for_a_decade
Using Backus Naur Form,

Yet Another Compiler Compiler
and
Lex
and Using the following input to lex and yacc write a compiler for the following
ANSI C grammer (lex)
and
ANSI C grammar (YACC)
whose output is a properly formated i86 or risc assembly language program for piping into an OS's native assembler for the production of an
< href="http://en.wikipedia.org/wiki/Executable_and_Linkable_Format">ELF executable for any variant of UNIX.

153 posted on 06/05/2015 4:38:37 PM PDT by lurked_for_a_decade (Imagination is more important than knowledge!)
[ Post Reply | Private Reply | To 143 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson