Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 284 Bytes
To use OMeta under Rhino:
Monad:~/prog/ometa-js awarth$ java org.mozilla.javascript.tools.shell.Main
Rhino 1.7 release 1 2008 03 06
js> load("ometa-rhino.js")
js> ometa("ometa M { ones = 1* }")
[object Object]
js> M.matchAll([1, 1, 1, 1, 1], "ones")
[1, 1, 1, 1, 1]