Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanError ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
type Token ¶
type Type ¶
type Type uint
const ( Illegal Type = iota EOF Whitespace Comment DocComment Ident Int Float String Var InlineHTML OpenTag // <?php CloseTag // ?> Dollar // $ Backslash // \ Qmark // ? Lparen // ( Rparen // ) Lbrack // [ Rbrack // ] Lbrace // { Rbrace // } Add // + Sub // - Assign // = Lt // < Gt // > Period // . Comma // , Colon // : DoubleColon // :: Semicolon // ; Ellipsis // ... Or // | And // & Quo // / Shl // << Shr // >> Arrow // -> DoubleArrow // => Abstract // abstract As // as Break // break Case // case Catch // catch Class // class Clone // clone Const // const Continue // continue Declare // declare Default // default Do // do Else // else Extends // extends Final // final Finally // finally Fn // fn For // for Foreach // foreach Function // function Goto // goto If // if Implements // implements Instanceof // instanceof Insteadof // insteadof Interface // interface Namespace // namespace New // new Private // private Protected // protected Public // public Return // return Static // static Switch // switch Throw // throw Trait // trait Try // try Use // use While // while )
Source Files
¶
- token.go
- type_string.go
Click to show internal directories.
Click to hide internal directories.