https://github.com/leafo/moonscript-go
Just testing some stuff, ignore
https://github.com/leafo/moonscript-go
Last synced: 25 days ago
JSON representation
Just testing some stuff, ignore
- Host: GitHub
- URL: https://github.com/leafo/moonscript-go
- Owner: leafo
- Created: 2024-11-02T15:40:30.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-05T04:22:40.000Z (7 months ago)
- Last Synced: 2025-05-07T20:09:39.124Z (about 1 month ago)
- Language: Go
- Size: 72.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a test repo to see what it's like to write a parser with https://pkg.go.dev/github.com/mna/pigeon
Nothing here is complete, and it may never be completed.
## Well this is probably a failure
Partially implemented parser, no transformer, basic compiler in the go version, already slower than Lua version:
```
(master) ~/code/go/mooonscript > ls -lah big.moon
-rw-r--r-- 1 leafo leafo 2.1M Nov 4 20:11 big.moon
(master) ~/code/go/mooonscript > time ./moonscript-go big.moon > /dev/null
real 0m5.158s
user 0m10.425s
sys 0m0.089s
(master) ~/code/go/mooonscript > time moonc -p big.moon > /dev/nullreal 0m3.876s
user 0m3.725s
sys 0m0.140s
(master) ~/code/go/mooonscript > time moonc-luajit -p big.moon > /dev/nullreal 0m2.176s
user 0m2.067s
sys 0m0.100s
```