gmslAPI  0.1
gmslAPI: An API for Developing Upgrade Solutions using Great Migrations Technology
gmslLibrary.Services.Parser Class Reference

The class Parser analyses character strings in a known computer language, according to the rules of of that language. At the present time there are two language types processed by this class, "Basic" and the set of contemporary OOP languages referred to here simply as "Java". More...

Static Public Member Functions

static string GetToken (ref LexemeType tokenType)
 The GetToken method gets the next token, lexeme, from the current statement. More...
 
static int ResetInput ()
 The ResetInput method resets the starting position of the next token to the starting position of the current token. The presence of this method allows for one token look-ahead which is the primary capability needed to parse phrase-structured languages. More...
 
static void SetInput (int icol)
 The SetInput method sets the starting positions of the current and next token to a specified value. More...
 
static void SetStatement (string record)
 The SetStatement method sets the content of the global communications buffer which contains the current input to the parser.
More...
 
static void SetReserved (Dialects dialect)
 

Detailed Description

The class Parser analyses character strings in a known computer language, according to the rules of of that language. At the present time there are two language types processed by this class, "Basic" and the set of contemporary OOP languages referred to here simply as "Java".

Member Function Documentation

◆ GetToken()

static string gmslLibrary.Services.Parser.GetToken ( ref LexemeType  tokenType)
static

The GetToken method gets the next token, lexeme, from the current statement.

Parameters
tokenTypeThe tokenType parameter returns the Lexeme type of the token.
Returns
The method returns the actual lexeme value of the token.

◆ ResetInput()

static int gmslLibrary.Services.Parser.ResetInput ( )
static

The ResetInput method resets the starting position of the next token to the starting position of the current token. The presence of this method allows for one token look-ahead which is the primary capability needed to parse phrase-structured languages.

Returns
The method returns the new starting position.

◆ SetInput()

static void gmslLibrary.Services.Parser.SetInput ( int  icol)
static

The SetInput method sets the starting positions of the current and next token to a specified value.

Parameters
icolspecifies the starting position for the current and next input token.

◆ SetStatement()

static void gmslLibrary.Services.Parser.SetStatement ( string  record)
static

The SetStatement method sets the content of the global communications buffer which contains the current input to the parser.

Parameters
recordcontains the string record to be parsed.

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