Skip to content

基于《用Go语言自制编译器》一书,利用C++(11) 实现Monkey语言编译器。 Based on the book "Self made Compilers in Go Language", use C++(11) to implement the Monkey language compiler.

Notifications You must be signed in to change notification settings

Hardwell369/Language_Monkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quik Start

before start

  • Ensure that the computer's operating system is Linux
  • Ensure that the computer is installed with g++ and Cmake tools

how to build

firstly, cd the repository: ~/Language_Monkey/ and than type following commands in terminal:

mkdir build
cd build
cmake ..
make

It will complete compilation in a few minutes, and generate an executable program "monkey"

how to run

cd build
# 1. compile and run in one command
./monkey run
# 2. open command line mod
./monkey cmd

if you choose execute the command #1, you should write down the monkey_language program in a text file named "input.txt", which is under "build" directory. (if "input.txt" doesn't exist, you should create it firstly.)

if you choose execute the other #2, you should type monkey_language command in terminal, and each command should end with ";".

About

基于《用Go语言自制编译器》一书,利用C++(11) 实现Monkey语言编译器。 Based on the book "Self made Compilers in Go Language", use C++(11) to implement the Monkey language compiler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages