I need a simple C console application written that will perform the following operation.
Open a command line specified file, recognize the tokens in the given file, build a symbol table and construct
token strings for a LISP type language (All this in output to another binary file).
For example, when program is executed as follows, ./theprogram [login to view URL] [login to view URL]
If input file contains the following content:
( CAR '(B D C))
(+ +15 ( * -20 2))
(CONS '(B D C) (CONS ``A (B)'C D" '(BB BB)))
^Z
The ouput should appear as follows:
( CAR '(B D C))
( 157 161 ( 250 80 9 ) )
(+ +15 ( * -20 2))
( 35 100 ( 74 102 91 ) )
(CONS '(B D C) (CONS ``A (B)'C D" '(BB BB)))
( 34 161 ( 250 80 9 ) ( 34 209 161 ( 65 65 ) ) )
The symbol table should appear as the file attached