| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"go/constant" |
| 10 |
"go/token" |
| 11 |
"reflect" |
| 12 |
"text/scanner" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["text/scanner/scanner"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"Char": reflect.ValueOf(constant.MakeFromLiteral("-5", token.INT, 0)), |
| 19 |
"Comment": reflect.ValueOf(constant.MakeFromLiteral("-8", token.INT, 0)), |
| 20 |
"EOF": reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)), |
| 21 |
"Float": reflect.ValueOf(constant.MakeFromLiteral("-4", token.INT, 0)), |
| 22 |
"GoTokens": reflect.ValueOf(constant.MakeFromLiteral("1012", token.INT, 0)), |
| 23 |
"GoWhitespace": reflect.ValueOf(constant.MakeFromLiteral("4294977024", token.INT, 0)), |
| 24 |
"Ident": reflect.ValueOf(constant.MakeFromLiteral("-2", token.INT, 0)), |
| 25 |
"Int": reflect.ValueOf(constant.MakeFromLiteral("-3", token.INT, 0)), |
| 26 |
"RawString": reflect.ValueOf(constant.MakeFromLiteral("-7", token.INT, 0)), |
| 27 |
"ScanChars": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), |
| 28 |
"ScanComments": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), |
| 29 |
"ScanFloats": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), |
| 30 |
"ScanIdents": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), |
| 31 |
"ScanInts": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), |
| 32 |
"ScanRawStrings": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), |
| 33 |
"ScanStrings": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), |
| 34 |
"SkipComments": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), |
| 35 |
"String": reflect.ValueOf(constant.MakeFromLiteral("-6", token.INT, 0)), |
| 36 |
"TokenString": reflect.ValueOf(scanner.TokenString), |
| 37 |
|
| 38 |
|
| 39 |
"Position": reflect.ValueOf((*scanner.Position)(nil)), |
| 40 |
"Scanner": reflect.ValueOf((*scanner.Scanner)(nil)), |
| 41 |
} |
| 42 |
} |