Scanner

Overview

Location

  • Reference: Go.fx
  • Namespace: go.scanner
  • Platforms: Island

 

constructor

 

constructor

 

Scanner()

 

init()

 

Sub New()

 

constructor(afile: Memory<File>; adir: string; asrc: Slice<Byte>; aerr: ErrorHandler; amode: Mode; ach: rune; aoffset: int; ardOffset: int; alineOffset: int; ainsertSemi: bool; aErrorCount: int)

 

Scanner(Memory<File> afile, string adir, Slice<Byte> asrc, ErrorHandler aerr, Mode amode, rune ach, int aoffset, int ardOffset, int alineOffset, bool ainsertSemi, int aErrorCount)

 

init(_ afile: Memory<File>, _ adir: string, _ asrc: Slice<Byte>, _ aerr: ErrorHandler, _ amode: Mode, _ ach: rune, _ aoffset: int, _ ardOffset: int, _ alineOffset: int, _ ainsertSemi: bool, _ aErrorCount: int)

 

Sub New(afile As Memory<File>, adir As string, asrc As Slice<Byte>, aerr As ErrorHandler, amode As Mode, ach As rune, aoffset As int, ardOffset As int, alineOffset As int, ainsertSemi As bool, aErrorCount As int)

Parameters:

  • afile:
  • adir:
  • asrc:
  • aerr:
  • amode:
  • ach:
  • aoffset:
  • ardOffset:
  • alineOffset:
  • ainsertSemi:
  • aErrorCount:

constructor (Scanner)

 

constructor(value: Scanner)

 

Scanner(Scanner value)

 

init(_ value: Scanner)

 

Sub New(value As Scanner)

Parameters:

  • value:

ErrorCount

 

var ErrorCount: int;

 

int ErrorCount

 

var ErrorCount: int

 

ErrorCount int

 

FIELD ErrorCount() As int

Init

 

method Init(file: Memory<File>; src: Slice<Byte>; err: ErrorHandler; mode: Mode)

 

void Init(Memory<File> file, Slice<Byte> src, ErrorHandler err, Mode mode)

 

func Init(_ file: Memory<File>, _ src: Slice<Byte>, _ err: ErrorHandler, _ mode: Mode)

 

func Init(file Memory<File>, src Slice<Byte>, err ErrorHandler, mode Mode) void

 

Sub Init(file As Memory<File>, src As Slice<Byte>, err As ErrorHandler, mode As Mode)

Parameters:

  • file:
  • src:
  • err:
  • mode:

Scan

 

method Scan: tuple of (pos: Pos, tok: Token, lit: string)

 

(Pos pos, Token tok, string lit) Scan()

 

func Scan() -> (Pos, Token, string)

 

func Scan() tuple of (|name=pos| Pos, |name=tok| Token, |name=lit| string)

 

Function Scan() As Tuple (Of Pos, Token, string)

 

ErrorCount

 

var ErrorCount: int;

 

int ErrorCount

 

var ErrorCount: int

 

ErrorCount int

 

FIELD ErrorCount() As int

 

constructor

 

constructor

 

Scanner()

 

init()

 

Sub New()

 

constructor(afile: Memory<File>; adir: string; asrc: Slice<Byte>; aerr: ErrorHandler; amode: Mode; ach: rune; aoffset: int; ardOffset: int; alineOffset: int; ainsertSemi: bool; aErrorCount: int)

 

Scanner(Memory<File> afile, string adir, Slice<Byte> asrc, ErrorHandler aerr, Mode amode, rune ach, int aoffset, int ardOffset, int alineOffset, bool ainsertSemi, int aErrorCount)

 

init(_ afile: Memory<File>, _ adir: string, _ asrc: Slice<Byte>, _ aerr: ErrorHandler, _ amode: Mode, _ ach: rune, _ aoffset: int, _ ardOffset: int, _ alineOffset: int, _ ainsertSemi: bool, _ aErrorCount: int)

 

Sub New(afile As Memory<File>, adir As string, asrc As Slice<Byte>, aerr As ErrorHandler, amode As Mode, ach As rune, aoffset As int, ardOffset As int, alineOffset As int, ainsertSemi As bool, aErrorCount As int)

Parameters:

  • afile:
  • adir:
  • asrc:
  • aerr:
  • amode:
  • ach:
  • aoffset:
  • ardOffset:
  • alineOffset:
  • ainsertSemi:
  • aErrorCount:

constructor (Scanner)

 

constructor(value: Scanner)

 

Scanner(Scanner value)

 

init(_ value: Scanner)

 

Sub New(value As Scanner)

Parameters:

  • value:

Init

 

method Init(file: Memory<File>; src: Slice<Byte>; err: ErrorHandler; mode: Mode)

 

void Init(Memory<File> file, Slice<Byte> src, ErrorHandler err, Mode mode)

 

func Init(_ file: Memory<File>, _ src: Slice<Byte>, _ err: ErrorHandler, _ mode: Mode)

 

func Init(file Memory<File>, src Slice<Byte>, err ErrorHandler, mode Mode) void

 

Sub Init(file As Memory<File>, src As Slice<Byte>, err As ErrorHandler, mode As Mode)

Parameters:

  • file:
  • src:
  • err:
  • mode:

Scan

 

method Scan: tuple of (pos: Pos, tok: Token, lit: string)

 

(Pos pos, Token tok, string lit) Scan()

 

func Scan() -> (Pos, Token, string)

 

func Scan() tuple of (|name=pos| Pos, |name=tok| Token, |name=lit| string)

 

Function Scan() As Tuple (Of Pos, Token, string)