Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLVED: How to run Ohayo programs from shell #91

Open
martin12333 opened this issue Oct 17, 2022 · 4 comments
Open

SOLVED: How to run Ohayo programs from shell #91

martin12333 opened this issue Oct 17, 2022 · 4 comments

Comments

@martin12333
Copy link

martin12333 commented Oct 17, 2022

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
Copy link
Author

martin12333 commented Oct 19, 2022

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 martin12333 changed the title How to run Ohayo programs from shell? SOLVED: How to run Ohayo programs from shell Oct 20, 2022
@martin12333
Copy link
Author

martin12333 commented Oct 20, 2022

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
Copy link
Contributor

Good work, Martin (@martin12333)!

@martin12333
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants