المشاريع
عرض على GitHub
hazbo/the-super-tiny-compiler
حول
مثل The Super Tiny Compiler، لكن بلغة Go.
لغات البرمجة وبيئات التشغيلالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلYou may have recently come across The Super Tiny Compiler project. I read the code a handful of times back-to-back and decided to see if I could write a compiler myself, in Go. This project essentially just a port of the original one, which is written in JavaScript. With comments, it's around 1000 lines - without, only around 250.
Usage
$ git clone [email protected]:hazbo/the-super-tiny-compiler.git
$ cd the-super-tiny-compiler && go build -o tiny
$ ./tiny
Input: (add 2 (subtract 10 5))
Output: add(2, subtract(10, 5));
You can find the input towards the bottom of compiler.go.
Tests
$ go test
Contributing
Feel free to issue a pull request if you feel there is something you could or would like to add to this project.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…

