├── LICENSE ├── README.md ├── javascript-interpreter ├── stage0 │ ├── LICENSE │ ├── Setup.hs │ ├── app │ │ └── Main.hs │ ├── src │ │ ├── Declare.hs │ │ ├── Interp.hs │ │ ├── Parser.hs │ │ ├── Tokens.hs │ │ └── TypeCheck.hs │ ├── stack.yaml │ ├── test │ │ └── doctest-driver.hs │ └── tutorial4.cabal ├── stage1 │ ├── LICENSE │ ├── Setup.hs │ ├── app │ │ └── Main.hs │ ├── demo.txt │ ├── demo2.txt │ ├── src │ │ ├── Declare.hs │ │ ├── Interp.hs │ │ ├── Parser.hs │ │ ├── Tokens.hs │ │ └── TypeCheck.hs │ ├── stack.yaml │ ├── test │ │ └── doctest-driver.hs │ └── tutorial5.cabal ├── stage2 │ ├── LICENSE │ ├── Setup.hs │ ├── app │ │ └── Main.hs │ ├── demo.txt │ ├── src │ │ ├── CallByName.hs │ │ ├── Declare.hs │ │ ├── Interp.hs │ │ ├── Parser.hs │ │ ├── Tokens.hs │ │ └── TypeCheck.hs │ ├── stack.yaml │ ├── test │ │ └── doctest-driver.hs │ └── tutorial6.cabal └── stage3 │ ├── LICENSE │ ├── Setup.hs │ ├── app │ └── Main.hs │ ├── demo.txt │ ├── src │ ├── Declare.hs │ ├── Interp.hs │ ├── Parser.hs │ ├── Tokens.hs │ └── TypeCheck.hs │ ├── stack.yaml │ ├── test │ └── doctest-driver.hs │ └── tutorial7.cabal ├── jcc ├── README.md ├── assemblers │ ├── nas │ │ ├── makefile │ │ ├── nas.l │ │ └── nas.y │ └── sas │ │ ├── makefile │ │ ├── sas.l │ │ └── sas.y ├── c4 │ ├── .gitignore │ ├── c4.l │ ├── c4.y │ ├── c4c.c │ ├── c4i.c │ ├── calc3.h │ ├── makefile │ ├── readme │ ├── sample_progs │ │ ├── fact.sas │ │ ├── fact.sc │ │ ├── for.sas │ │ └── for.sc │ ├── sas.l │ └── sas.y ├── c5 │ ├── .gitignore │ ├── c5.l │ ├── c5.y │ ├── c5c.c │ ├── calc3.h │ ├── makefile │ ├── nas.l │ ├── nas.y │ ├── readme.md │ ├── run_sample_progs.sh │ ├── run_tests.sh │ ├── sample_progs │ │ ├── fact.nas │ │ ├── fact.sc │ │ ├── fact.sc.nas │ │ ├── max.nas │ │ ├── max.sc │ │ ├── max.sc.nas │ │ ├── rev-c.nas │ │ ├── rev-c.sc │ │ └── rev-c.sc.nas │ ├── strmap.c │ ├── strmap.h │ └── test │ │ ├── ta01.ans │ │ ├── ta01.nas │ │ ├── ta01.sc │ │ ├── ta02.ans │ │ ├── ta02.nas │ │ ├── ta02.sc │ │ ├── ta03.ans │ │ ├── ta03.nas │ │ ├── ta03.sc │ │ ├── tc01.ans │ │ ├── tc01.nas │ │ ├── tc01.sc │ │ ├── tc02.ans │ │ ├── tc02.nas │ │ ├── tc02.sc │ │ ├── tc03.ans │ │ ├── tc03.nas │ │ ├── tc03.sc │ │ ├── tc04.ans │ │ ├── tc04.nas │ │ ├── tc04.sc │ │ ├── tc05.ans │ │ ├── tc05.nas │ │ ├── tc05.sc │ │ ├── tc06.ans │ │ ├── tc06.nas │ │ ├── tc06.sc │ │ ├── tc07.ans │ │ ├── tc07.nas │ │ ├── tc07.sc │ │ ├── tc08.ans │ │ ├── tc08.nas │ │ ├── tc08.sc │ │ ├── tc09.ans │ │ ├── tc09.nas │ │ ├── tc09.sc │ │ ├── tc10.ans │ │ ├── tc10.nas │ │ ├── tc10.sc │ │ ├── tc11.ans │ │ ├── tc11.nas │ │ ├── tc11.sc │ │ ├── tc12.ans │ │ ├── tc12.nas │ │ └── tc12.sc └── c6 │ ├── .gitignore │ ├── apps │ ├── tic-tac-toe.nas │ └── tic-tac-toe.sc │ ├── c6.l │ ├── c6.y │ ├── c6c.c │ ├── calc3.h │ ├── makefile │ ├── nas.l │ ├── nas.y │ ├── readme.md │ ├── run_sample_progs.sh │ ├── run_tests.sh │ ├── sample_progs │ ├── fact.nas │ ├── fact.sc │ ├── fact.sc.nas │ ├── max.nas │ ├── max.sc │ ├── max.sc.nas │ ├── rev-c.nas │ ├── rev-c.sc │ └── rev-c.sc.nas │ ├── strmap.c │ ├── strmap.h │ ├── test-c6 │ ├── tc01.ans │ ├── tc01.nas │ ├── tc01.sc │ ├── tc02.ans │ ├── tc02.nas │ ├── tc02.sc │ ├── tc03.ans │ ├── tc03.nas │ ├── tc03.sc │ ├── tc04.ans │ ├── tc04.nas │ ├── tc04.sc │ ├── tc05.ans │ ├── tc05.nas │ ├── tc05.sc │ ├── tc06.ans │ ├── tc06.nas │ ├── tc06.sc │ ├── tc07.ans │ ├── tc07.nas │ ├── tc07.sc │ ├── tc08.ans │ ├── tc08.nas │ ├── tc08.sc │ ├── tc09.ans │ ├── tc09.nas │ ├── tc09.sc │ ├── tc10.ans │ ├── tc10.nas │ ├── tc10.sc │ ├── tc11.ans │ ├── tc11.nas │ └── tc11.sc │ └── test │ ├── ta01.ans │ ├── ta01.nas │ ├── ta01.sc │ ├── ta02.ans │ ├── ta02.nas │ ├── ta02.sc │ ├── ta03.ans │ ├── ta03.nas │ ├── ta03.sc │ ├── tc01.ans │ ├── tc01.nas │ ├── tc01.sc │ ├── tc02.ans │ ├── tc02.nas │ ├── tc02.sc │ ├── tc03.ans │ ├── tc03.nas │ ├── tc03.sc │ ├── tc04.ans │ ├── tc04.nas │ ├── tc04.sc │ ├── tc05.ans │ ├── tc05.nas │ ├── tc05.sc │ ├── tc06.ans │ ├── tc06.nas │ ├── tc06.sc │ ├── tc07.ans │ ├── tc07.nas │ ├── tc07.sc │ ├── tc08.ans │ ├── tc08.nas │ ├── tc08.sc │ ├── tc09.ans │ ├── tc09.nas │ ├── tc09.sc │ ├── tc10.ans │ ├── tc10.nas │ ├── tc10.sc │ ├── tc11.ans │ ├── tc11.nas │ ├── tc11.sc │ ├── tc12.ans │ ├── tc12.nas │ └── tc12.sc ├── misc ├── LexAndYaccCode │ ├── build │ ├── calc1.l │ ├── calc1.y │ ├── calc2.l │ ├── calc2.y │ ├── calc3.h │ ├── calc3.l │ ├── calc3.y │ ├── calc3a.c │ ├── calc3b.c │ ├── calc3g.c │ └── clean ├── c4 │ ├── c4.l │ ├── c4.y │ ├── c4c.c │ ├── c4i.c │ ├── calc3.h │ ├── fact.sas │ ├── fact.sc │ ├── for.sas │ ├── for.sc │ ├── lex.cal.c │ ├── makefile │ ├── readme │ ├── sas.c │ ├── sas.l │ └── sas.y ├── div5.l ├── e.l ├── e1.y ├── gen5.c ├── island_count │ ├── ic.l │ ├── ocean.txt │ ├── ocean_20_40.txt │ └── ocean_bonus.txt ├── lrcal │ ├── lrcal.l │ ├── lrcal.y │ └── readme ├── nas │ ├── fact.as │ ├── max.as │ ├── nas.l │ ├── nas.y │ ├── rev-c.as │ ├── rev.as │ └── test.as ├── recursive_descent_cal │ ├── grammar │ ├── rdcal.c │ └── rdcal.l ├── sdt │ ├── sdt.l │ ├── sdt1.y │ ├── sdt2.y │ └── sdt3.y ├── sentence_count │ ├── sc.l │ ├── test.txt │ └── test2.txt ├── wc0.l └── wc1.l ├── music_translator ├── build.sh ├── readme.md ├── test │ ├── g.out │ ├── greensleeves.ans │ ├── greensleeves.out │ ├── greensleeves.txt │ ├── h.out │ ├── happy_birthday.ans │ ├── happy_birthday.out │ ├── happy_birthday.txt │ ├── l.out │ ├── love_me_tender.ans │ ├── love_me_tender.out │ ├── love_me_tender.txt │ ├── o.out │ ├── ode_to_joy.ans │ ├── ode_to_joy.out │ ├── ode_to_joy.txt │ ├── s.out │ ├── scarborough_fair.ans │ ├── scarborough_fair.out │ ├── scarborough_fair.txt │ └── test.txt ├── trans.l └── trans.y ├── simple_calculator ├── cal.l └── cal.y ├── tdp-compiler ├── build.sh ├── demo.tdp ├── lex.yy.c ├── lex.yy.o ├── readme.md ├── tdp ├── tdp.l ├── tdp.y ├── y.tab.c ├── y.tab.h └── y.tab.o └── toy_compiler ├── build ├── calc1.l ├── calc1.y ├── calc2.l ├── calc2.y ├── calc3.h ├── calc3.l ├── calc3.y ├── calc3a.c ├── calc3b.c ├── calc3g.c └── clean /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/README.md -------------------------------------------------------------------------------- /javascript-interpreter/stage0/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/LICENSE -------------------------------------------------------------------------------- /javascript-interpreter/stage0/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /javascript-interpreter/stage0/app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/app/Main.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/src/Declare.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/src/Declare.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/src/Interp.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/src/Interp.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/src/Parser.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/src/Parser.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/src/Tokens.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/src/Tokens.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/src/TypeCheck.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/src/TypeCheck.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage0/stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/stack.yaml -------------------------------------------------------------------------------- /javascript-interpreter/stage0/test/doctest-driver.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF doctest-discover #-} 2 | -------------------------------------------------------------------------------- /javascript-interpreter/stage0/tutorial4.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage0/tutorial4.cabal -------------------------------------------------------------------------------- /javascript-interpreter/stage1/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/LICENSE -------------------------------------------------------------------------------- /javascript-interpreter/stage1/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /javascript-interpreter/stage1/app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/app/Main.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/demo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/demo.txt -------------------------------------------------------------------------------- /javascript-interpreter/stage1/demo2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/demo2.txt -------------------------------------------------------------------------------- /javascript-interpreter/stage1/src/Declare.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/src/Declare.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/src/Interp.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/src/Interp.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/src/Parser.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/src/Parser.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/src/Tokens.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/src/Tokens.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/src/TypeCheck.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/src/TypeCheck.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage1/stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/stack.yaml -------------------------------------------------------------------------------- /javascript-interpreter/stage1/test/doctest-driver.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF doctest-discover #-} 2 | -------------------------------------------------------------------------------- /javascript-interpreter/stage1/tutorial5.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage1/tutorial5.cabal -------------------------------------------------------------------------------- /javascript-interpreter/stage2/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/LICENSE -------------------------------------------------------------------------------- /javascript-interpreter/stage2/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /javascript-interpreter/stage2/app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/app/Main.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/demo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/demo.txt -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/CallByName.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/CallByName.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/Declare.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/Declare.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/Interp.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/Interp.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/Parser.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/Parser.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/Tokens.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/Tokens.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/src/TypeCheck.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/src/TypeCheck.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage2/stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/stack.yaml -------------------------------------------------------------------------------- /javascript-interpreter/stage2/test/doctest-driver.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF doctest-discover #-} 2 | -------------------------------------------------------------------------------- /javascript-interpreter/stage2/tutorial6.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage2/tutorial6.cabal -------------------------------------------------------------------------------- /javascript-interpreter/stage3/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/LICENSE -------------------------------------------------------------------------------- /javascript-interpreter/stage3/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /javascript-interpreter/stage3/app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/app/Main.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/demo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/demo.txt -------------------------------------------------------------------------------- /javascript-interpreter/stage3/src/Declare.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/src/Declare.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/src/Interp.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/src/Interp.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/src/Parser.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/src/Parser.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/src/Tokens.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/src/Tokens.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/src/TypeCheck.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/src/TypeCheck.hs -------------------------------------------------------------------------------- /javascript-interpreter/stage3/stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/stack.yaml -------------------------------------------------------------------------------- /javascript-interpreter/stage3/test/doctest-driver.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF doctest-discover #-} 2 | -------------------------------------------------------------------------------- /javascript-interpreter/stage3/tutorial7.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/javascript-interpreter/stage3/tutorial7.cabal -------------------------------------------------------------------------------- /jcc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/README.md -------------------------------------------------------------------------------- /jcc/assemblers/nas/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/nas/makefile -------------------------------------------------------------------------------- /jcc/assemblers/nas/nas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/nas/nas.l -------------------------------------------------------------------------------- /jcc/assemblers/nas/nas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/nas/nas.y -------------------------------------------------------------------------------- /jcc/assemblers/sas/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/sas/makefile -------------------------------------------------------------------------------- /jcc/assemblers/sas/sas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/sas/sas.l -------------------------------------------------------------------------------- /jcc/assemblers/sas/sas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/assemblers/sas/sas.y -------------------------------------------------------------------------------- /jcc/c4/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/.gitignore -------------------------------------------------------------------------------- /jcc/c4/c4.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/c4.l -------------------------------------------------------------------------------- /jcc/c4/c4.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/c4.y -------------------------------------------------------------------------------- /jcc/c4/c4c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/c4c.c -------------------------------------------------------------------------------- /jcc/c4/c4i.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/c4i.c -------------------------------------------------------------------------------- /jcc/c4/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/calc3.h -------------------------------------------------------------------------------- /jcc/c4/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/makefile -------------------------------------------------------------------------------- /jcc/c4/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/readme -------------------------------------------------------------------------------- /jcc/c4/sample_progs/fact.sas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sample_progs/fact.sas -------------------------------------------------------------------------------- /jcc/c4/sample_progs/fact.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sample_progs/fact.sc -------------------------------------------------------------------------------- /jcc/c4/sample_progs/for.sas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sample_progs/for.sas -------------------------------------------------------------------------------- /jcc/c4/sample_progs/for.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sample_progs/for.sc -------------------------------------------------------------------------------- /jcc/c4/sas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sas.l -------------------------------------------------------------------------------- /jcc/c4/sas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c4/sas.y -------------------------------------------------------------------------------- /jcc/c5/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/.gitignore -------------------------------------------------------------------------------- /jcc/c5/c5.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/c5.l -------------------------------------------------------------------------------- /jcc/c5/c5.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/c5.y -------------------------------------------------------------------------------- /jcc/c5/c5c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/c5c.c -------------------------------------------------------------------------------- /jcc/c5/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/calc3.h -------------------------------------------------------------------------------- /jcc/c5/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/makefile -------------------------------------------------------------------------------- /jcc/c5/nas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/nas.l -------------------------------------------------------------------------------- /jcc/c5/nas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/nas.y -------------------------------------------------------------------------------- /jcc/c5/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/readme.md -------------------------------------------------------------------------------- /jcc/c5/run_sample_progs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/run_sample_progs.sh -------------------------------------------------------------------------------- /jcc/c5/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/run_tests.sh -------------------------------------------------------------------------------- /jcc/c5/sample_progs/fact.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/fact.nas -------------------------------------------------------------------------------- /jcc/c5/sample_progs/fact.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/fact.sc -------------------------------------------------------------------------------- /jcc/c5/sample_progs/fact.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/fact.sc.nas -------------------------------------------------------------------------------- /jcc/c5/sample_progs/max.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/max.nas -------------------------------------------------------------------------------- /jcc/c5/sample_progs/max.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/max.sc -------------------------------------------------------------------------------- /jcc/c5/sample_progs/max.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/max.sc.nas -------------------------------------------------------------------------------- /jcc/c5/sample_progs/rev-c.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/rev-c.nas -------------------------------------------------------------------------------- /jcc/c5/sample_progs/rev-c.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/rev-c.sc -------------------------------------------------------------------------------- /jcc/c5/sample_progs/rev-c.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/sample_progs/rev-c.sc.nas -------------------------------------------------------------------------------- /jcc/c5/strmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/strmap.c -------------------------------------------------------------------------------- /jcc/c5/strmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/strmap.h -------------------------------------------------------------------------------- /jcc/c5/test/ta01.ans: -------------------------------------------------------------------------------- 1 | c 2 | 27 3 | hello, world! 4 | -------------------------------------------------------------------------------- /jcc/c5/test/ta01.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta01.nas -------------------------------------------------------------------------------- /jcc/c5/test/ta01.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta01.sc -------------------------------------------------------------------------------- /jcc/c5/test/ta02.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta02.ans -------------------------------------------------------------------------------- /jcc/c5/test/ta02.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta02.nas -------------------------------------------------------------------------------- /jcc/c5/test/ta02.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta02.sc -------------------------------------------------------------------------------- /jcc/c5/test/ta03.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta03.ans -------------------------------------------------------------------------------- /jcc/c5/test/ta03.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta03.nas -------------------------------------------------------------------------------- /jcc/c5/test/ta03.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/ta03.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc01.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc01.ans -------------------------------------------------------------------------------- /jcc/c5/test/tc01.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc01.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc01.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc01.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc02.ans: -------------------------------------------------------------------------------- 1 | Enter a char: 2 | cX 3 | -------------------------------------------------------------------------------- /jcc/c5/test/tc02.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc02.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc02.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc02.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc03.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc03.ans -------------------------------------------------------------------------------- /jcc/c5/test/tc03.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc03.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc03.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc03.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc04.ans: -------------------------------------------------------------------------------- 1 | 9876558 2 | -------------------------------------------------------------------------------- /jcc/c5/test/tc04.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc04.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc04.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc04.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc05.ans: -------------------------------------------------------------------------------- 1 | a>b 2 | a==b 3 | c>=a 4 | -------------------------------------------------------------------------------- /jcc/c5/test/tc05.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc05.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc05.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc05.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc06.ans: -------------------------------------------------------------------------------- 1 | 105, -1, 14 2 | -------------------------------------------------------------------------------- /jcc/c5/test/tc06.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc06.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc06.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc06.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc07.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc07.ans -------------------------------------------------------------------------------- /jcc/c5/test/tc07.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc07.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc07.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc07.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc08.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc08.ans -------------------------------------------------------------------------------- /jcc/c5/test/tc08.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc08.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc08.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc08.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc09.ans: -------------------------------------------------------------------------------- 1 | 2750 2 | -------------------------------------------------------------------------------- /jcc/c5/test/tc09.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc09.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc09.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc09.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc10.ans: -------------------------------------------------------------------------------- 1 | 1 2 | 5 3 | 12 4 | -------------------------------------------------------------------------------- /jcc/c5/test/tc10.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc10.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc10.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc10.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc11.ans: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /jcc/c5/test/tc11.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc11.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc11.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc11.sc -------------------------------------------------------------------------------- /jcc/c5/test/tc12.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc12.ans -------------------------------------------------------------------------------- /jcc/c5/test/tc12.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc12.nas -------------------------------------------------------------------------------- /jcc/c5/test/tc12.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c5/test/tc12.sc -------------------------------------------------------------------------------- /jcc/c6/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/.gitignore -------------------------------------------------------------------------------- /jcc/c6/apps/tic-tac-toe.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/apps/tic-tac-toe.nas -------------------------------------------------------------------------------- /jcc/c6/apps/tic-tac-toe.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/apps/tic-tac-toe.sc -------------------------------------------------------------------------------- /jcc/c6/c6.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/c6.l -------------------------------------------------------------------------------- /jcc/c6/c6.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/c6.y -------------------------------------------------------------------------------- /jcc/c6/c6c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/c6c.c -------------------------------------------------------------------------------- /jcc/c6/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/calc3.h -------------------------------------------------------------------------------- /jcc/c6/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/makefile -------------------------------------------------------------------------------- /jcc/c6/nas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/nas.l -------------------------------------------------------------------------------- /jcc/c6/nas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/nas.y -------------------------------------------------------------------------------- /jcc/c6/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/readme.md -------------------------------------------------------------------------------- /jcc/c6/run_sample_progs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/run_sample_progs.sh -------------------------------------------------------------------------------- /jcc/c6/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/run_tests.sh -------------------------------------------------------------------------------- /jcc/c6/sample_progs/fact.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/fact.nas -------------------------------------------------------------------------------- /jcc/c6/sample_progs/fact.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/fact.sc -------------------------------------------------------------------------------- /jcc/c6/sample_progs/fact.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/fact.sc.nas -------------------------------------------------------------------------------- /jcc/c6/sample_progs/max.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/max.nas -------------------------------------------------------------------------------- /jcc/c6/sample_progs/max.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/max.sc -------------------------------------------------------------------------------- /jcc/c6/sample_progs/max.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/max.sc.nas -------------------------------------------------------------------------------- /jcc/c6/sample_progs/rev-c.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/rev-c.nas -------------------------------------------------------------------------------- /jcc/c6/sample_progs/rev-c.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/rev-c.sc -------------------------------------------------------------------------------- /jcc/c6/sample_progs/rev-c.sc.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/sample_progs/rev-c.sc.nas -------------------------------------------------------------------------------- /jcc/c6/strmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/strmap.c -------------------------------------------------------------------------------- /jcc/c6/strmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/strmap.h -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc01.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc01.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc01.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc01.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc01.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc01.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc02.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc02.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc02.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc02.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc02.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc02.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc03.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc03.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc03.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc03.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc03.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc03.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc04.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc04.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc04.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc04.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc04.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc04.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc05.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc05.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc05.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc05.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc05.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc05.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc06.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc06.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc06.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc06.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc06.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc06.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc07.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc07.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc07.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc07.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc07.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc07.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc08.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc08.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc08.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc08.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc08.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc08.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc09.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc09.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc09.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc09.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc09.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc09.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc10.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc10.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc10.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc10.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc10.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc10.sc -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc11.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc11.ans -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc11.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc11.nas -------------------------------------------------------------------------------- /jcc/c6/test-c6/tc11.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test-c6/tc11.sc -------------------------------------------------------------------------------- /jcc/c6/test/ta01.ans: -------------------------------------------------------------------------------- 1 | c 2 | 27 3 | hello, world! 4 | -------------------------------------------------------------------------------- /jcc/c6/test/ta01.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta01.nas -------------------------------------------------------------------------------- /jcc/c6/test/ta01.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta01.sc -------------------------------------------------------------------------------- /jcc/c6/test/ta02.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta02.ans -------------------------------------------------------------------------------- /jcc/c6/test/ta02.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta02.nas -------------------------------------------------------------------------------- /jcc/c6/test/ta02.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta02.sc -------------------------------------------------------------------------------- /jcc/c6/test/ta03.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta03.ans -------------------------------------------------------------------------------- /jcc/c6/test/ta03.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta03.nas -------------------------------------------------------------------------------- /jcc/c6/test/ta03.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/ta03.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc01.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc01.ans -------------------------------------------------------------------------------- /jcc/c6/test/tc01.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc01.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc01.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc01.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc02.ans: -------------------------------------------------------------------------------- 1 | Enter a char: 2 | cX 3 | -------------------------------------------------------------------------------- /jcc/c6/test/tc02.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc02.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc02.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc02.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc03.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc03.ans -------------------------------------------------------------------------------- /jcc/c6/test/tc03.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc03.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc03.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc03.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc04.ans: -------------------------------------------------------------------------------- 1 | 9876558 2 | -------------------------------------------------------------------------------- /jcc/c6/test/tc04.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc04.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc04.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc04.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc05.ans: -------------------------------------------------------------------------------- 1 | a>b 2 | a==b 3 | c>=a 4 | -------------------------------------------------------------------------------- /jcc/c6/test/tc05.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc05.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc05.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc05.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc06.ans: -------------------------------------------------------------------------------- 1 | 100, 1, 13 2 | -------------------------------------------------------------------------------- /jcc/c6/test/tc06.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc06.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc06.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc06.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc07.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc07.ans -------------------------------------------------------------------------------- /jcc/c6/test/tc07.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc07.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc07.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc07.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc08.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc08.ans -------------------------------------------------------------------------------- /jcc/c6/test/tc08.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc08.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc08.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc08.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc09.ans: -------------------------------------------------------------------------------- 1 | 2750 2 | -------------------------------------------------------------------------------- /jcc/c6/test/tc09.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc09.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc09.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc09.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc10.ans: -------------------------------------------------------------------------------- 1 | 1 2 | 5 3 | 12 4 | -------------------------------------------------------------------------------- /jcc/c6/test/tc10.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc10.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc10.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc10.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc11.ans: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /jcc/c6/test/tc11.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc11.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc11.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc11.sc -------------------------------------------------------------------------------- /jcc/c6/test/tc12.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc12.ans -------------------------------------------------------------------------------- /jcc/c6/test/tc12.nas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc12.nas -------------------------------------------------------------------------------- /jcc/c6/test/tc12.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/jcc/c6/test/tc12.sc -------------------------------------------------------------------------------- /misc/LexAndYaccCode/build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/build -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc1.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc1.l -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc1.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc1.y -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc2.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc2.l -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc2.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc2.y -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3.h -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3.l -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3.y -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3a.c -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3b.c -------------------------------------------------------------------------------- /misc/LexAndYaccCode/calc3g.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/calc3g.c -------------------------------------------------------------------------------- /misc/LexAndYaccCode/clean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/LexAndYaccCode/clean -------------------------------------------------------------------------------- /misc/c4/c4.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/c4.l -------------------------------------------------------------------------------- /misc/c4/c4.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/c4.y -------------------------------------------------------------------------------- /misc/c4/c4c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/c4c.c -------------------------------------------------------------------------------- /misc/c4/c4i.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/c4i.c -------------------------------------------------------------------------------- /misc/c4/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/calc3.h -------------------------------------------------------------------------------- /misc/c4/fact.sas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/fact.sas -------------------------------------------------------------------------------- /misc/c4/fact.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/fact.sc -------------------------------------------------------------------------------- /misc/c4/for.sas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/for.sas -------------------------------------------------------------------------------- /misc/c4/for.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/for.sc -------------------------------------------------------------------------------- /misc/c4/lex.cal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/lex.cal.c -------------------------------------------------------------------------------- /misc/c4/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/makefile -------------------------------------------------------------------------------- /misc/c4/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/readme -------------------------------------------------------------------------------- /misc/c4/sas.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/sas.c -------------------------------------------------------------------------------- /misc/c4/sas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/sas.l -------------------------------------------------------------------------------- /misc/c4/sas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/c4/sas.y -------------------------------------------------------------------------------- /misc/div5.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/div5.l -------------------------------------------------------------------------------- /misc/e.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/e.l -------------------------------------------------------------------------------- /misc/e1.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/e1.y -------------------------------------------------------------------------------- /misc/gen5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/gen5.c -------------------------------------------------------------------------------- /misc/island_count/ic.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/island_count/ic.l -------------------------------------------------------------------------------- /misc/island_count/ocean.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/island_count/ocean.txt -------------------------------------------------------------------------------- /misc/island_count/ocean_20_40.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/island_count/ocean_20_40.txt -------------------------------------------------------------------------------- /misc/island_count/ocean_bonus.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/island_count/ocean_bonus.txt -------------------------------------------------------------------------------- /misc/lrcal/lrcal.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/lrcal/lrcal.l -------------------------------------------------------------------------------- /misc/lrcal/lrcal.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/lrcal/lrcal.y -------------------------------------------------------------------------------- /misc/lrcal/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/lrcal/readme -------------------------------------------------------------------------------- /misc/nas/fact.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/fact.as -------------------------------------------------------------------------------- /misc/nas/max.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/max.as -------------------------------------------------------------------------------- /misc/nas/nas.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/nas.l -------------------------------------------------------------------------------- /misc/nas/nas.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/nas.y -------------------------------------------------------------------------------- /misc/nas/rev-c.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/rev-c.as -------------------------------------------------------------------------------- /misc/nas/rev.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/rev.as -------------------------------------------------------------------------------- /misc/nas/test.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/nas/test.as -------------------------------------------------------------------------------- /misc/recursive_descent_cal/grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/recursive_descent_cal/grammar -------------------------------------------------------------------------------- /misc/recursive_descent_cal/rdcal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/recursive_descent_cal/rdcal.c -------------------------------------------------------------------------------- /misc/recursive_descent_cal/rdcal.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/recursive_descent_cal/rdcal.l -------------------------------------------------------------------------------- /misc/sdt/sdt.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sdt/sdt.l -------------------------------------------------------------------------------- /misc/sdt/sdt1.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sdt/sdt1.y -------------------------------------------------------------------------------- /misc/sdt/sdt2.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sdt/sdt2.y -------------------------------------------------------------------------------- /misc/sdt/sdt3.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sdt/sdt3.y -------------------------------------------------------------------------------- /misc/sentence_count/sc.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sentence_count/sc.l -------------------------------------------------------------------------------- /misc/sentence_count/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sentence_count/test.txt -------------------------------------------------------------------------------- /misc/sentence_count/test2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/sentence_count/test2.txt -------------------------------------------------------------------------------- /misc/wc0.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/wc0.l -------------------------------------------------------------------------------- /misc/wc1.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/misc/wc1.l -------------------------------------------------------------------------------- /music_translator/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/build.sh -------------------------------------------------------------------------------- /music_translator/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/readme.md -------------------------------------------------------------------------------- /music_translator/test/g.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/g.out -------------------------------------------------------------------------------- /music_translator/test/greensleeves.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/greensleeves.ans -------------------------------------------------------------------------------- /music_translator/test/greensleeves.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/greensleeves.out -------------------------------------------------------------------------------- /music_translator/test/greensleeves.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/greensleeves.txt -------------------------------------------------------------------------------- /music_translator/test/h.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/h.out -------------------------------------------------------------------------------- /music_translator/test/happy_birthday.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/happy_birthday.ans -------------------------------------------------------------------------------- /music_translator/test/happy_birthday.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/happy_birthday.out -------------------------------------------------------------------------------- /music_translator/test/happy_birthday.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/happy_birthday.txt -------------------------------------------------------------------------------- /music_translator/test/l.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/l.out -------------------------------------------------------------------------------- /music_translator/test/love_me_tender.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/love_me_tender.ans -------------------------------------------------------------------------------- /music_translator/test/love_me_tender.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/love_me_tender.out -------------------------------------------------------------------------------- /music_translator/test/love_me_tender.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/love_me_tender.txt -------------------------------------------------------------------------------- /music_translator/test/o.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/o.out -------------------------------------------------------------------------------- /music_translator/test/ode_to_joy.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/ode_to_joy.ans -------------------------------------------------------------------------------- /music_translator/test/ode_to_joy.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/ode_to_joy.out -------------------------------------------------------------------------------- /music_translator/test/ode_to_joy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/ode_to_joy.txt -------------------------------------------------------------------------------- /music_translator/test/s.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/s.out -------------------------------------------------------------------------------- /music_translator/test/scarborough_fair.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/scarborough_fair.ans -------------------------------------------------------------------------------- /music_translator/test/scarborough_fair.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/scarborough_fair.out -------------------------------------------------------------------------------- /music_translator/test/scarborough_fair.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/scarborough_fair.txt -------------------------------------------------------------------------------- /music_translator/test/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/test/test.txt -------------------------------------------------------------------------------- /music_translator/trans.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/trans.l -------------------------------------------------------------------------------- /music_translator/trans.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/music_translator/trans.y -------------------------------------------------------------------------------- /simple_calculator/cal.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/simple_calculator/cal.l -------------------------------------------------------------------------------- /simple_calculator/cal.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/simple_calculator/cal.y -------------------------------------------------------------------------------- /tdp-compiler/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/build.sh -------------------------------------------------------------------------------- /tdp-compiler/demo.tdp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/demo.tdp -------------------------------------------------------------------------------- /tdp-compiler/lex.yy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/lex.yy.c -------------------------------------------------------------------------------- /tdp-compiler/lex.yy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/lex.yy.o -------------------------------------------------------------------------------- /tdp-compiler/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/readme.md -------------------------------------------------------------------------------- /tdp-compiler/tdp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/tdp -------------------------------------------------------------------------------- /tdp-compiler/tdp.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/tdp.l -------------------------------------------------------------------------------- /tdp-compiler/tdp.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/tdp.y -------------------------------------------------------------------------------- /tdp-compiler/y.tab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/y.tab.c -------------------------------------------------------------------------------- /tdp-compiler/y.tab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/y.tab.h -------------------------------------------------------------------------------- /tdp-compiler/y.tab.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/tdp-compiler/y.tab.o -------------------------------------------------------------------------------- /toy_compiler/build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/build -------------------------------------------------------------------------------- /toy_compiler/calc1.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc1.l -------------------------------------------------------------------------------- /toy_compiler/calc1.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc1.y -------------------------------------------------------------------------------- /toy_compiler/calc2.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc2.l -------------------------------------------------------------------------------- /toy_compiler/calc2.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc2.y -------------------------------------------------------------------------------- /toy_compiler/calc3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3.h -------------------------------------------------------------------------------- /toy_compiler/calc3.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3.l -------------------------------------------------------------------------------- /toy_compiler/calc3.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3.y -------------------------------------------------------------------------------- /toy_compiler/calc3a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3a.c -------------------------------------------------------------------------------- /toy_compiler/calc3b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3b.c -------------------------------------------------------------------------------- /toy_compiler/calc3g.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/calc3g.c -------------------------------------------------------------------------------- /toy_compiler/clean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/James-QiuHaoran/simple-compilers/HEAD/toy_compiler/clean --------------------------------------------------------------------------------