Module: stdgo.text.scanner
Overview
Index
-
function testInvalidExponent(_t:stdgo._internal.testing.T_):Void
-
function testNextEOFHandling(_t:stdgo._internal.testing.T_):Void
-
function testScanCustomIdent(_t:stdgo._internal.testing.T_):Void
-
function testScanEOFHandling(_t:stdgo._internal.testing.T_):Void
-
function testScanSelectedMask(_t:stdgo._internal.testing.T_):Void
-
function testScanWhitespace(_t:stdgo._internal.testing.T_):Void
-
function testScanZeroMode(_t:stdgo._internal.testing.T_):Void
Constants
import stdgo.text.scanner.Scanner
final char:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_char.char
final comment:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_comment.comment
final eof:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_eof.eof
final float_:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_float_.float_
final goTokens:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_goTokens.goTokens
final goWhitespace:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_goWhitespace.goWhitespace
final ident:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_ident.ident
final int_:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_int_.int_
final rawString:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_rawString.rawString
final scanChars:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanChars.scanChars
final scanComments:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanComments.scanComments
final scanFloats:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanFloats.scanFloats
final scanIdents:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanIdents.scanIdents
final scanInts:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanInts.scanInts
final scanRawStrings:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanRawStrings.scanRawStrings
final scanStrings:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_scanStrings.scanStrings
final skipComments:haxe.UInt64 = stdgo._internal.text.scanner.Scanner_skipComments.skipComments
final string:stdgo.GoUInt64 = stdgo._internal.text.scanner.Scanner_string.string
Classes
import stdgo.text.scanner.*
class Scanner
{
ch_4312439 = s.Peek()
s.tokPos = -1
s.Line = 0
gotoNext = 4312513
_ = gotoNext == 4312513
_ = 0
redoBreak = false
gotoNext = 4312541
_ = gotoNext == 4312541
if !redoBreak && (s.Whitespace&(1<<uint(ch_4312439)) != 0) {
gotoNext = 4312577
_ = gotoNext == 4312577
ch_4312439 = s.next()
gotoNext = 4312541
} else {
gotoNext = 4312632
}
_ = gotoNext == 4312632
s.tokBuf.Reset()
s.tokPos = s.srcPos - s.lastCharLen
s.Offset = s.srcBufOffset + s.tokPos
if s.column > 0 {
gotoNext = 4312829
_ = gotoNext == 4312829
s.Line = s.line
s.Column = s.column
gotoNext = 4313138
} else {
gotoNext = 4312927
_ = gotoNext == 4312927
s.Line = s.line - 1
s.Column = s.lastLineLen
gotoNext = 4313138
}
_ = gotoNext == 4313138
tok_4313138 = ch_4312439
_ = 0
gotoNext = 4313149
_ = gotoNext == 4313149
switch {
case s.isIdentRune(ch_4312439, 0):
gotoNext = 4313159
_ = gotoNext == 4313159
if s.Mode&4 != 0 {
gotoNext = 4313214
_ = gotoNext == 4313214
tok_4313138 = -2
ch_4312439 = s.scanIdentifier()
gotoNext = 4314227
} else {
gotoNext = 4313267
_ = gotoNext == 4313267
ch_4312439 = s.next()
gotoNext = 4314227
}
gotoNext = 4314227
case isDecimal(ch_4312439):
gotoNext = 4313291
_ = gotoNext == 4313291
if s.Mode&24 != 0 {
gotoNext = 4313350
_ = gotoNext == 4313350
tok_4313138, ch_4312439 = s.scanNumber(ch_4312439, false)
gotoNext = 4314227
} else {
gotoNext = 4313398
_ = gotoNext == 4313398
ch_4312439 = s.next()
gotoNext = 4314227
}
gotoNext = 4314227
default:
gotoNext = 4313422
_ = gotoNext == 4313422
_ = 0
gotoNext = 4313433
_ = gotoNext == 4313433
switch ch_4312439 {
case -1:
gotoNext = 4313447
_ = gotoNext == 4313447
gotoNext = 4314227
gotoNext = 4314227
case 34:
gotoNext = 4313468
_ = gotoNext == 4313468
if s.Mode&64 != 0 {
gotoNext = 4313508
_ = gotoNext == 4313508
s.scanString(34)
tok_4313138 = -6
gotoNext = 4313557
} else {
gotoNext = 4313557
}
_ = gotoNext == 4313557
ch_4312439 = s.next()
gotoNext = 4314227
case 39:
gotoNext = 4313573
_ = gotoNext == 4313573
if s.Mode&32 != 0 {
gotoNext = 4313612
_ = gotoNext == 4313612
s.scanChar()
tok_4313138 = -5
gotoNext = 4313654
} else {
gotoNext = 4313654
}
_ = gotoNext == 4313654
ch_4312439 = s.next()
gotoNext = 4314227
case 46:
gotoNext = 4313670
_ = gotoNext == 4313670
ch_4312439 = s.next()
if isDecimal(ch_4312439) && s.Mode&16 != 0 {
gotoNext = 4313743
_ = gotoNext == 4313743
tok_4313138, ch_4312439 = s.scanNumber(ch_4312439, true)
gotoNext = 4314227
} else {
gotoNext = 4314227
}
gotoNext = 4314227
case 47:
gotoNext = 4313789
_ = gotoNext == 4313789
ch_4312439 = s.next()
if (ch_4312439 == 47 || ch_4312439 == 42) && s.Mode&256 != 0 {
gotoNext = 4313875
_ = gotoNext == 4313875
if s.Mode&512 != 0 {
gotoNext = 4313909
_ = gotoNext == 4313909
s.tokPos = -1
ch_4312439 = s.scanComment(ch_4312439)
gotoNext = 4312513
gotoNext = 4314011
} else {
gotoNext = 4314011
}
_ = gotoNext == 4314011
ch_4312439 = s.scanComment(ch_4312439)
tok_4313138 = -8
gotoNext = 4314227
} else {
gotoNext = 4314227
}
gotoNext = 4314227
case 96:
gotoNext = 4314059
_ = gotoNext == 4314059
if s.Mode&128 != 0 {
gotoNext = 4314102
_ = gotoNext == 4314102
s.scanRawString()
tok_4313138 = -7
gotoNext = 4314154
} else {
gotoNext = 4314154
}
_ = gotoNext == 4314154
ch_4312439 = s.next()
gotoNext = 4314227
default:
gotoNext = 4314170
_ = gotoNext == 4314170
ch_4312439 = s.next()
gotoNext = 4314227
}
gotoNext = 4314227
}
_ = gotoNext == 4314227
s.tokEnd = s.srcPos - s.lastCharLen
s.ch = ch_4312439
return tok_4313138
gotoNext = -1
}
Scanner function testError
function testError(_t:stdgo._internal.testing.T_):Void
Scanner function testIOError
function testIOError(_t:stdgo._internal.testing.T_):Void
Scanner function testInvalidExponent
function testInvalidExponent(_t:stdgo._internal.testing.T_):Void
Scanner function testIssue29723
function testIssue29723(_t:stdgo._internal.testing.T_):Void
Scanner function testIssue30320
function testIssue30320(_t:stdgo._internal.testing.T_):Void
Scanner function testIssue50909
function testIssue50909(_t:stdgo._internal.testing.T_):Void
Scanner function testNext
function testNext(_t:stdgo._internal.testing.T_):Void
Scanner function testNextEOFHandling
function testNextEOFHandling(_t:stdgo._internal.testing.T_):Void
Scanner function testNumbers
function testNumbers(_t:stdgo._internal.testing.T_):Void
Scanner function testPos
function testPos(_t:stdgo._internal.testing.T_):Void
Scanner function testPosition
function testPosition(_t:stdgo._internal.testing.T_):Void
Scanner function testScan
function testScan(_t:stdgo._internal.testing.T_):Void
Scanner function testScanCustomIdent
function testScanCustomIdent(_t:stdgo._internal.testing.T_):Void
Scanner function testScanEOFHandling
function testScanEOFHandling(_t:stdgo._internal.testing.T_):Void
Scanner function testScanNext
function testScanNext(_t:stdgo._internal.testing.T_):Void
Scanner function testScanSelectedMask
function testScanSelectedMask(_t:stdgo._internal.testing.T_):Void
Scanner function testScanWhitespace
function testScanWhitespace(_t:stdgo._internal.testing.T_):Void
Scanner function testScanZeroMode
function testScanZeroMode(_t:stdgo._internal.testing.T_):Void
Scanner function tokenString
function tokenString(_tok:Int):String
TokenString returns a printable string for a token or Unicode character.
Typedefs
import stdgo.text.scanner.*
typedef T__struct_0
typedef T__struct_0 = stdgo._internal.text.scanner.T__struct_0;
typedef T__struct_1
typedef T__struct_1 = stdgo._internal.text.scanner.T__struct_1;
typedef T_countReader
typedef T_countReader = stdgo._internal.text.scanner.T_countReader;