Code Unleash
Compilers
- Simple Calculator: A simple command line calculator developed using flex & gnu-bison. It supports real and/or integer operands and +, -, *, /, () operators.
- Math Calculator: A sophisticated command line calculator for scientific applications developed using flex & gnu-bison. It supports logarithmic, exponential, trigonometric and hyperbolic expressions. The input and output expressions can be either in BIN, OCT, DEC or HEX number systems. One can also select different precisions levels. See the help file and a sample session.
- Simple Calculator Again: This calculator is similar to the Simple Calculator above, only that it has been developed using JFlex & CUP. The parser and Yylex are thus Java classes.
- Cold Editor for C: tclex is a utility developed using flex that converts a C source code into a html file that contains each token suitably color coded as done by the TurboC(TC) editor. Remember that familiar blue screen!?
- A bare-bones Compiler: TACG (Three Address Code Generator) is a bare-bones version of a C-like compiler. TACG generates intermediate code for statements and expressions involving integer literals, variables and operators. It contains only two kinds of statements in the following order-
- declaration (and/or initialization) of int variables
- statements and expressions involving integers
The source may also contain single line comments. The operators allowed are same as that of K&R-C () ! ~ ++ -- + - * / % + - << >> < <= > >= ++ != & ^ && || ?: = += -= *= /= %= &= ^= |= << >>=. Tacg has been developed using JFlex and CUP tools for java. See also
TacgApplet and Readme. Modifying the tacg application just got easier with 4 new bat files!