Convert PHP source code to Go by AST walking
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
mappu f8ae3aac8d doc/README: fix markdown syntax for publication 7 months ago
fixtures node: support php predefined constants 7 months ago
parseutil move miniwalker to parseutil package 9 months ago
vendor vendor: commit github.com/z7zmey/php-parser v0.7.0 (MIT license) 9 months ago
.gitignore fixtures: exclude *.parse.json from git 9 months ago
README.md doc/README: fix markdown syntax for publication 7 months ago
fixtures_test.go test: ensure fixtures are processed in order 9 months ago
go.mod initial commit 9 months ago
go.sum initial commit 9 months ago
gotype.go gotype: support function types 9 months ago
hoistpass.go hoist: new hoisting context inside closures and loops; don't hoist loop vars 9 months ago
literal.go initial commit 9 months ago
main.go node: support php predefined constants 7 months ago
node.go node: support php predefined constants 7 months ago
normalisealts.go cleanup dead imports 9 months ago
quote.go node: better handling for unquoting heredoc fragments 9 months ago
scope.go gotype: support function types 9 months ago

README.md

php2go

Convert PHP source code to Go by AST walking.

The goal is to produce idiomatic, maintainable Go code as part of a one-off conversion. This is not generally possible for highly dynamic PHP code, that may require manual fixups.

Progress

Phase 1

  • [-] Namespaces

Productionize

Moonshots

Reference