php-parser/main.go
2017-12-01 15:29:23 +02:00

27 lines
252 B
Go

package main
import (
"bytes"
"os"
)
const src = `
<?php
namespace Test;
/**
* Class foo
*/
class foo
{
}
`
func main() {
yyDebug = 0
yyErrorVerbose = true
l := newLexer(bytes.NewBufferString(src), os.Stdout, "file.name")
yyParse(l)
}