Index of /tinker/arith

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]Makefile2004-11-26 21:11 276  
[TXT]README.html2004-11-26 21:28 649  
[   ]arith.l2004-11-26 21:04 1.3K 
[   ]arith.y2004-11-26 21:18 2.7K 

arith

This is a simple lexer/parser I wrote while teaching myself about lex and yacc. It evaluates expressions closely resembling C infix syntax, omitting the assignments, function calls, etc. For example:

1 + 2
3
1 * 56 - 2
54
(1 - 2) * 5
-5
(1 ^ 3) << 1
4
(true && false) || (false || true)
1

Throwing it on the web because when I searched around I found lots of examples much like this one but none of them in a state where they could actually be compiled, run and tinkered with.