php-parser/main.go

27 lines
252 B
Go
Raw Normal View History

2017-12-01 13:29:23 +00:00
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)
}