Skip to content

twd2/mao_interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SXKDZ Mao Interpreter (SMI)

Description

SXKDZ Mao Interpreter is a simple Mao language parser. This project is a part of the big homework of C programming language course of the school of software engineering, Tongji University.

SXKDZ Mao Interpreter is written in C completely. The first version of SMC is a simple application of stack.

Mao Language is designed by Ivan Lin.

Features

  • Cross-platform
  • Implement stack, vector and map in C
  • Dynamic memory allocating, for optimized memory using
  • Intelligent error catching

Requirments

  • CMake (version >= 3.0)
  • gcc (version >= 4.8.0)

Building

for 32-bits compiling:

you need install libc6-dev-i386 at first

sudo apt-get install libc6-dev-i386

after installing:

cmake . -DUSE_32BITS=1
make

for 64-bits compiling:

cmake .
make

Usage

for standard input / output:

./smi

for file input:

./smi source.mao

License

GPL v3

About

SXKDZ Mao Interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published