breck7 / ohayo

A free, fast, public domain data science studio
https://ohayo.breckyunits.com
132 stars 5 forks source link

SOLVED: How to run Ohayo programs from shell #91

Open martin12333 opened 1 year ago

martin12333 commented 1 year ago

In https://github.com/breck7/ohayo/tree/main/ohayo/readme.scroll , there is a

section Running Ohayo Programs on the Command Line
...
#! /usr/bin/env node /usr/local/bin/jtree
...
martin12333 commented 1 year ago

EDIT: now I have used

➜  ~ git:(wsl) ✗ git clone https://github.com/breck7/ohayo
npm i .

instead of

➜  ~ git:(wsl) ✗ mkdir ohayo  # EDITED
➜  ~ git:(wsl) ✗ cd ohayo # EDITED
➜  ohayo git:(wsl) ✗ npm i ohayo

and things started to work ...

martin12333 commented 1 year ago

SOLVED: How to run Ohayo programs from shell ...

First time:


cd
git clone https://github.com/breck7/ohayo

cd ohayo

npm i 

###npx bash
npx /bin/bash

./builder.ts
./builder.ts produceOhayoGrammar
###
./builder.ts produceAll
./builder.ts test

jtree register $PWD/ohayo/ohayo.grammar
jtree list

jtree ohayo/packages/print/test.ohayo
# WORKS!
celtic-coder commented 1 year ago

Good work, Martin (@martin12333)!

martin12333 commented 1 year ago

(I have fixed 2 bugs in my script , and I have also made it work in a devcontainer-with-nodejs )