breck7/ohayo

SOLVED: How to run Ohayo programs from shell

Opened this issue · 4 comments

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

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

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!

Good work, Martin (@martin12333)!

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