OpenASIP  2.0
Public Member Functions | Public Attributes | List of all members
ParserTemp Struct Reference

#include <AssemblerParser.hh>

Collaboration diagram for ParserTemp:
Collaboration graph

Public Member Functions

 ParserTemp ()
 

Public Attributes

std::string sLiteral
 
UValue lastNumber
 Last parsed numeric value. More...
 
bool isLastSigned
 Should lastNumber be interpret as signed or unsigned value. More...
 
UValue index
 Last parsed index. More...
 
BusTerm busTerm
 Last parsed bus reference. More...
 
FUTerm fuTerm
 Last parsed unit.port[.operation] reference. More...
 
IndexTerm indexTerm
 Last parsed rf[.port].index or fu.operation.index reference. More...
 
RegisterTerm regTerm
 Last parsed register term (copy of most recent parsed bus, fu or index term). More...
 
Expression expression
 Last parsed label reference form: name[(+|-)offset][=literal]. More...
 
LiteralOrExpression litOrExpr
 Last parsed literal or expression. More...
 
ParserMove move
 Last parsed source, destination and guard. More...
 
std::string label
 Last label name. More...
 
std::string directive
 Last directive parameter string. More...
 
InitDataField initDataField
 Last init data field. More...
 
DataLine dataLine
 Last data line. More...
 
UValue lineNumber
 Line number of currently parsed line. More...
 
UValue codeLineCount
 Line number of currently parsed code line. More...
 
Annotation annotation
 Last annotation. More...
 

Detailed Description

Temporary structure, where all data is parsed before copying it to right place.

Definition at line 90 of file AssemblerParser.hh.

Constructor & Destructor Documentation

◆ ParserTemp()

ParserTemp::ParserTemp ( )
inline

Definition at line 91 of file AssemblerParser.hh.

91 : lastNumber(0), lineNumber(1), codeLineCount(0) {}

Member Data Documentation

◆ annotation

Annotation ParserTemp::annotation

Last annotation.

Definition at line 146 of file AssemblerParser.hh.

◆ busTerm

BusTerm ParserTemp::busTerm

Last parsed bus reference.

Definition at line 106 of file AssemblerParser.hh.

◆ codeLineCount

UValue ParserTemp::codeLineCount

Line number of currently parsed code line.

Definition at line 143 of file AssemblerParser.hh.

◆ dataLine

DataLine ParserTemp::dataLine

Last data line.

Definition at line 137 of file AssemblerParser.hh.

◆ directive

std::string ParserTemp::directive

Last directive parameter string.

Definition at line 131 of file AssemblerParser.hh.

◆ expression

Expression ParserTemp::expression

Last parsed label reference form: name[(+|-)offset][=literal].

Definition at line 119 of file AssemblerParser.hh.

◆ fuTerm

FUTerm ParserTemp::fuTerm

Last parsed unit.port[.operation] reference.

Definition at line 109 of file AssemblerParser.hh.

◆ index

UValue ParserTemp::index

Last parsed index.

Definition at line 103 of file AssemblerParser.hh.

◆ indexTerm

IndexTerm ParserTemp::indexTerm

Last parsed rf[.port].index or fu.operation.index reference.

Definition at line 112 of file AssemblerParser.hh.

◆ initDataField

InitDataField ParserTemp::initDataField

Last init data field.

Definition at line 134 of file AssemblerParser.hh.

◆ isLastSigned

bool ParserTemp::isLastSigned

Should lastNumber be interpret as signed or unsigned value.

Definition at line 100 of file AssemblerParser.hh.

◆ label

std::string ParserTemp::label

Last label name.

Definition at line 128 of file AssemblerParser.hh.

◆ lastNumber

UValue ParserTemp::lastNumber

Last parsed numeric value.

Definition at line 97 of file AssemblerParser.hh.

◆ lineNumber

UValue ParserTemp::lineNumber

Line number of currently parsed line.

Definition at line 140 of file AssemblerParser.hh.

Referenced by AssemblerParser::errorLine().

◆ litOrExpr

LiteralOrExpression ParserTemp::litOrExpr

Last parsed literal or expression.

Definition at line 122 of file AssemblerParser.hh.

◆ move

ParserMove ParserTemp::move

Last parsed source, destination and guard.

Definition at line 125 of file AssemblerParser.hh.

◆ regTerm

RegisterTerm ParserTemp::regTerm

Last parsed register term (copy of most recent parsed bus, fu or index term).

Definition at line 116 of file AssemblerParser.hh.

◆ sLiteral

std::string ParserTemp::sLiteral

Definition at line 94 of file AssemblerParser.hh.


The documentation for this struct was generated from the following file:
ParserTemp::lastNumber
UValue lastNumber
Last parsed numeric value.
Definition: AssemblerParser.hh:97
ParserTemp::codeLineCount
UValue codeLineCount
Line number of currently parsed code line.
Definition: AssemblerParser.hh:143
ParserTemp::lineNumber
UValue lineNumber
Line number of currently parsed line.
Definition: AssemblerParser.hh:140