File gps/Lexer


class gps.Lexer

Inherits

Behaviour supers
tom.All

instance gps.Lexer

Inherits

Behaviour supers
tom.All

methods

deferred int
  current_line;
Return the current line at which this lexer is reading.

deferred tom.String
  filename;
Return the name of the file being read.

deferred Parser
  parser;
Return the Parser (currently) being fed by this lexer.

deferred int
  nextToken;
Read and return another token from the input.

deferred _builtin_.Any
  semantics;
Return the semantic meaning of the current token, in any way the sender wants.

deferred void
  set_parser Parser parser;
Set the current parser. This is the parser that will be returned by the parser method.

deferred int
  token;
Return the current token.


class gps.SkeletonLexer

Inherits

State supers
Lexer, tom.State, tom.Conditions

instance gps.SkeletonLexer

variables

public Parser parser;
The parser which we're feeding.
public int current_line;
The current line number.
public tom.String filename;
The filename, at least what we think it is.
public int token;
The current token.
tom.All semantics;
The semantic content of the current token.

methods

id
  initWithFilename tom.String name
             line: int start_line = 1;
Designated initializer.

_builtin_.Any
  semantics;
Return the semantics any way the sender wants.

void
  set_parser Parser p
pre
  !parser;
Undocumented.


Generated by tm 1.01.