Versions in this module Expand all Collapse all v0 v0.1.1 Sep 2, 2025 v0.1.0 Jun 27, 2025 Changes in this version + type Pos struct + Column int + Line int + func (p Pos) String() string + type ScanError struct + Err error + Pos Pos + func (e *ScanError) Error() string + type Scanner struct + func NewScanner(r io.Reader, php74Compat bool) *Scanner + func (s *Scanner) Err() error + func (s *Scanner) Next() (tok Token) + type Token struct + Pos Pos + Text string + Type Type + func (t Token) String() string + type Type uint + const Abstract + const Add + const AddAssign + const And + const AndAssign + const Arrow + const As + const Assign + const At + const Backslash + const BitAnd + const BitNot + const BitOr + const BitShl + const BitShr + const BitXor + const Break + const Case + const Catch + const Class + const Clone + const CloseTag + const Coalesce + const CoalesceAssign + const Colon + const Comma + const Comment + const Concat + const ConcatAssign + const Const + const Continue + const Dec + const Declare + const Default + const Do + const DocComment + const Dollar + const DoubleArrow + const DoubleColon + const EOF + const Echo + const Ellipsis + const Else + const Enum + const Eq + const Extends + const Final + const Finally + const Float + const Fn + const For + const Foreach + const From + const Function + const Geq + const Global + const Goto + const Gt + const Hash + const Ident + const Identical + const If + const Illegal + const Implements + const Inc + const InlineHTML + const Instanceof + const Insteadof + const Int + const Interface + const Lbrace + const Lbrack + const Leq + const LowPrecAnd + const LowPrecOr + const LowPrecXor + const Lparen + const Lt + const Match + const Mul + const MulAssign + const Namespace + const Neq + const New + const Not + const NotIdentical + const OpenTag + const Or + const OrAssign + const Pow + const PowAssign + const Print + const Private + const Protected + const Public + const Qmark + const QmarkArrow + const Quo + const QuoAssign + const Rbrace + const Rbrack + const Readonly + const Rem + const RemAssign + const Return + const Rparen + const Semicolon + const ShlAssign + const ShrAssign + const Spaceship + const Static + const String + const Sub + const SubAssign + const Switch + const Throw + const Trait + const Try + const Use + const Var + const While + const Whitespace + const XorAssign + const Yield + func (i Type) String() string + func (t Type) IsKeyword() bool