making CPU on Circuit Game
-
Clone
git clone https://github.com/neknaj/circuitgame
-
Build
cd circuitgame git pull cargo build --release cd .. cp ./circuitgame/target/release/circuitgame_bin ./ncg ./ncg -i circuit/turing_complete/turing_complete.ncg -s true -d doc/turing_complete.md
-
run
./ncg -i circuit/sample.ncg -d doc/sample.md -s 8081
-
open in your browser
https://neknaj.github.io/circuitgame/?socket=ws://localhost:8081
./ncg -i circuit/sample.ncg -d doc/sample.ncg
-
one module
./ncg -i circuit/sample.ncg -o test/module/sample.ts -m fAddr
-
all modules
./ncg -i circuit/sample.ncg -o test/module/sample.ts -m .+
ncg --help
Usage: ncg [OPTIONS]
Options:
-i, --input <Input File Path> Input file
-o, --output <Output File Path>
-d, --docOut <Document output File Path>
-m, --module <Name of module to compile>
-s, --server <Open server for API>
-w, --watch <File Watch> [possible values: true, false]
--vm <Run VM> [possible values: true, false]
-h, --help Print help
This project is licensed under the MIT License.