SkillAgentSearch skills...

Meego

A miniature bootstrapped Golang to vanilla C++ transpiler

Install / Use

/learn @aniketp/Meego
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

meego

A miniature bootstrapped Golang to 'Vanilla' C++ transpiler.

Lexer/Parser generated using gocc, following the stand-alone DFA which recognizes grammer for a regular language in BNF (Backus Naur Form).

  • Install meego and gocc
$ go get github.com/aniketp/meego
$ go get github.com/goccmack/gocc	(make deps)
  • Generate Lexer and Parser
$ cd src; gocc lang.bnf			(make run)
  • Run tests
$ cd test; go test -v			(make test)
  • Compile a simple program
$ go run main.go input/example.meego
5
Requiescat in pace, Ezio!

This project is my attempt to learn about Compiler Design, and was done in a short duration following this medium article, including my own variations on the top. As a result, the grammer is a tiny subset of Golang (with a mix of Typescript syntax).

To avoid the complexity of Intermediate Language generation and optimization, I switched the Target Language to a simple subset of C++11.

References

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated14d ago
Forks0

Languages

Go

Security Score

75/100

Audited on Mar 20, 2026

No findings