Arc Forumnew | comments | leaders | submitlogin
1 point by eds 5693 days ago | link | parent

Is this implemented as its own reader, or does it mutate the arc reader when loaded?

Have you seen http://arclanguage.org/item?id=2610 and http://github.com/nex3/arc/tree/master/lib/infix.arc ?



1 point by rincewind 5693 days ago | link

1. It is implemented as its own reader, but it uses arc/mzscheme-read for symbols and quotation syntax (the version at http://placebo.hpi.uni-potsdam.de/~robert.pfeiffer/arc/mexpr... also handles quasiquotation-syntax on its own, but is less well tested)

You can load a file in m-expression format with "(load-m filename)" (or "load-m[filename];").

2.Yes I have. The M-Expr reader converts into prefix form at read time, so the read forms look like arc code. M-Expressions are just a skin for S-Expressions, therefor I tried not to break anything by changing the run-time semantics of Arc (unlike infix.arc, which makes numbers callable, which my break drcodes currying (or my idea for automatically converting numbers in functional position into Church Numerals)).

-----