Created
May 11, 2015 10:21
-
-
Save keizo042/15b5f431fdfcbff701a9 to your computer and use it in GitHub Desktop.
Restricted Words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"go/parser" | |
) | |
func main() { | |
d := parser.AllErrors + parser.SpuriousErrors + parser.ParseComments | |
e := d + parser.PackageClauseOnly | |
h := e + parser.PackageClauseOnly + parser.ImportsOnly | |
l := h + parser.ParseComments | |
o := l + parser.PackageClauseOnly + parser.ImportsOnly | |
brank := parser.SpuriousErrors | |
w := o + parser.Trace | |
r := l + parser.ImportsOnly + parser.ParseComments | |
fmt.Print(string(h), string(e), string(l), string(l), string(o), string(brank), string(w), string(o), string(r), string(l), string(d)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment