Skip to content
orsinium-labsPublic

About

Convert code from Lua to Go syntax

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua2go

A simple CLI tool for converting code from Lua to Go syntax.

It only handles syntax (and even that still can be a bit off). You still need to manually replace any with proper types, implement or import missing functions, run go fmt.

The main purpose of the project is to assist in rewriting code from Lua to Go, not to fully automate it. I use it for porting games from PICO-8 to Firefly Zero, often with an assistance of pico8dis (and always with the author's permission, of course).

Installation

go install github.com/orsinium-labs/lua2go@main

Usage

cat main.lua | lua2go > main.go

About

Convert code from Lua to Go syntax

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages