Neroysq / bril2jb

A tool for translate bril code to Java Bytecode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bril2jb

A tool to translate bril code to Java Bytecode

prerequisite

  • openjdk 10.0.2
  • the libraries listed in lib

usage

make to compile the tool.

Use script bril2jb to generate *.class file.

~/G/bril2jb ❯❯❯ ./bril2jb
Missing required parameters: <inputFile>, <outputPath>
Usage: bril2jb [-hV] <inputFile> <outputPath>
A tool to translate bril code to Java Bytecode
      <inputFile>    The source code file.
      <outputPath>   The output class path.
  -h, --help         Show this help message and exit.
  -V, --version      Print version information and exit.

Use java to run the compiled class.

For example,

~/G/bril2jb ❯❯❯ ./bril2jb test/gcd.json ./
~/G/bril2jb ❯❯❯ java gcd

About

A tool for translate bril code to Java Bytecode

License:MIT License


Languages

Language:Java 97.6%Language:Shell 2.0%Language:Makefile 0.4%