8000 GitHub - CMMCompiler/CMMCompiler: 编译原理课设
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CMMCompiler/CMMCompiler

Repository files navigation

CMMCompiler

编译原理课设

Prepare

MacOS

brew install flex
brew install bison

Ubuntu

apt-get install flex bison

Windows

  • Download flexbison from: Flexbison
  • Add flexbison to system path

Run

MacOS

bison -d -o cmmparser.cpp cmmparser.y
flex -o cmmscanner.cpp cmmscanner.l
gcc -o cmm cmmparser.cpp cmmscanner.cpp
./cmm < sample.c

Ubuntu

sh run.sh
./test < sample.c

Windows

.\run.bat
.\test.exe < sample.c

About

编译原理课设

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0