scanner

package
v0.0.0-...-9c3cbc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(in io.Reader) *Scanner

func (*Scanner) Error

func (s *Scanner) Error() error

func (*Scanner) LastToken

func (s *Scanner) LastToken() Token

func (*Scanner) Read

func (s *Scanner) Read() bool

type Token

type Token struct {
	Type     TokenType
	Position scanner.Position
	Val      string
}

func (Token) String

func (t Token) String() string

type TokenType

type TokenType int
const (
	ILLEGAL TokenType = iota
	EOF
	COMMENT

	IDENT
	STRING
	NUM

	LPAREN // (
	RPAREN // )
	LBRACK // [
	RBRACK // ]
	LBRACE // {
	RBRACE // }

	COMMA     // ,
	COLON     // :
	SEMICOLON // ;
	PLUS      // +
	DASH      // -
	PTR       // *
	DIV       // /
	EQUALS    // =
	B_OR      // |

	IMPORT
	INTERFACE
	CPP_QUOTE
	MIDL_PRAGMA
	ENUM
	COCLASS
	TYPEDEF
	LIBRARY
	IMPORTLIB
	MODULE
	CONST
	LONG
	STRUCT
	HELPSTRING

	UUID
	OBJECT
	POINTER_DEFAULT
	LCID
	VERSION
	DLLNAME
	PROPGET
	PROPPUT
	ENTRY
	RETVAL
	SIZE_IS
	OLEAUTOMATION
	LOCAL
	ATTR_STRING
	DEFAULT
	NONCREATABLE

	V1_ENUM

	IN
	OUT
	ANNOTATION
	MAX_IS
	UNIQUE
	IID_IS
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL