#WIP of a Tiny J implementation in C#. Motivation: I needed J's speed and expressiveness in C# for a webapp Credits: JSoftware, Inc. for releasing the source code and for making excellent documentation available. Heavily influenced by An Implementation of J
Original version can be found in my lang-lab. The initial version did not use generics and then was rewritten to its current form. Generics were chosen when I found I was adding type specific code to every verb.
- run build.bat (windows) or mcs microj.cs primitives.cs repl.cs (mono)
- run bin\microj.exe or microj.exe to get a repl, hit ctrl+c to exit or type exit
- c:\windows\Microsoft.NET\Framework\v4.0.30319\MSBuild microj.msbuild /p:Configuration=Library
- new Parser().exec("1+1") //tested in linqpad
- filename
- i to run the repl (with other arguments specified)
- -tp to run parser tests (see tests at bottom of file)
- -t to run the supplied file in test mode
- -q to suppress output on file run
- -js "1+1" to run a string
- -n 10 -js "+/ i. 5" to run an operations N times
Starting with list from http://www.jsoftware.com/jwiki/DevonMcCormick/MinimalBeginningJ
See tests.ijs for what's implemented
Not intended to be a replacement for J. It may be useful to hack on to learn J better or embed in C#