sonota88 / mini-ruccola-v

simple toy compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a port of the compiler part of vm2gol-v2 (Ruby version).

V言語でかんたんな自作言語のコンパイラを書いた
https://memo88.hatenablog.com/entry/mini_ruccola_vlang

  $ v version
V 0.3.3 88de0de
git clone --recursive https://github.com/sonota88/mini-ruccola-v.git
cd mini-ruccola-v

./docker.sh build
./test.sh all
  $ LANG=C wc -l mrcl_*.v lib/{types,utils}.v
  417 mrcl_codegen.v
  129 mrcl_lexer.v
  444 mrcl_parser.v
  173 lib/types.v
   50 lib/utils.v
 1213 total

  $ wc -l lib/json.v
98 lib/json.v

  # format
./docker.sh run v fmt -w mrcl_*.v lib/*.v test/*.v

About

simple toy compiler

License:MIT License


Languages

Language:V 71.0%Language:Shell 25.8%Language:Dockerfile 3.2%