Skip to content

MasterZydra/GoPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoPHP

GoPHP is an implementation of the PHP language specification written in the Go programming language.

The goals of the project are:

  • Deep dive into the PHP language syntax and the internals of its mode of operation
  • Gain more experience in writing lexers, parser and interpreter

Usage: cat index.php | ./goPHP

Development

Compile and run
go run ./...

Build executable
go build -o . ./...

Run all tests
go test -v ./...

See test coverage
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out