EmperorC is a toolkit (including library, GUI frond-end, and command-line tool) for parsing and analyzing C source code written in Lua scripting language.
The library's files are inside emperor_c
directory, it depends two Lua libraries which are contained in the 3rd
directory:
The GUI front-end is named qinhuang
, and the command-line script is called hanwu.lua
, they are famous emperors in China's history.
Run GUI front-end directly from source, this is based on love2d.
love qinhuang
Run command-line script
./hanwu.lua <action> <source>
The source code comes with some built-in cases, it can be tested with busted. The following command will invoke busted to start testing.
make test
Run following command will create a love archive called qinhuang.love
in the current directory.
make qinhuang
You can run it directly by love executable of your system.
If you want to make it run indepently, i.e. make the .love archive to a distributable executable, just see Game Distribution of Love2d wiki.
Install related lua dependencies(lpeg & dkjson) and copy hanwu.lua
to your $PATH
.
Working in process ...