[PATCH]: Precedence

Waldemar Kornewald wkornew at gmx.net
Wed Jun 15 17:15:50 PDT 2005


Hi,
this is the `math macro and generic Precedence class for reordering a
syntax tree using any precedence rule.
It is not complete, though: macros and messages with optional parameters
are not recognized and it cannot yet understand that
2 ^ 3 ^ 4 = 2 ^ (3 ^ 4)

The list of math symbols is not complete, either, but that is trivial to
extend. I wanted to finally send this code before extending it.

Bye,
Waldemar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: precedence.zip
Type: application/octet-stream
Size: 4744 bytes
Desc: not available
Url : /archives/slate/attachments/20050616/6c8af819/precedence.obj


More information about the Slate mailing list