Logo Search packages:      
Sourcecode: yapps2 version File versions  Download package

yapps::runtime::Scanner Class Reference

Inherited by yapps::grammar::ParserDescriptionScanner.

List of all members.


Detailed Description

Yapps scanner.

The Yapps scanner can work in context sensitive or context
insensitive modes.  The token(i) method is used to retrieve the
i-th token.  It takes a restrict set that limits the set of tokens
it is allowed to return.  In context sensitive mode, this restrict
set guides the scanner.  In context insensitive mode, there is no
restriction (the set is always the full set of tokens).

Definition at line 67 of file runtime.py.


Public Member Functions

def __init__
def get_pos
def getchar
def grab_input
def peek
def print_line_with_pointer
def scan
def stack_input
def token

Public Attributes

 col
 del_line
 del_pos
 file
 filename
 ignore
 input
 last_read_token
 last_token
 last_types
 line
 patterns
 pos
 stack
 stacked
 tokens

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index