Skip to content

neknaj/cpu-circuitgame

Repository files navigation

CPU on Circuit Game

making CPU on Circuit Game

Build CircuitGame CLI Tool

  • 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

Develop

Open Server and Debug in Web Browser

Create Document

./ncg -i circuit/sample.ncg -d doc/sample.ncg

Transpile

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

Help(2025-1-12)

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

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •