Skip to content

joebo/microj

Repository files navigation

#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.

Repl - Building / Running (tested on windows/linux)

  1. run build.bat (windows) or mcs microj.cs primitives.cs repl.cs (mono)
  2. run bin\microj.exe or microj.exe to get a repl, hit ctrl+c to exit or type exit

Shared Library - Building (tested on windows)

  1. c:\windows\Microsoft.NET\Framework\v4.0.30319\MSBuild microj.msbuild /p:Configuration=Library
  2. new Parser().exec("1+1") //tested in linqpad

Command Line Options

  • 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

Primitive status

Starting with list from https://www.jsoftware.com/jwiki/DevonMcCormick/MinimalBeginningJ

See tests.ijs for what's implemented

Vision:

Not intended to be a replacement for J. It may be useful to hack on to learn J better or embed in C#

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •