hasmer
Public Member Functions | Properties | List of all members
Hasmer.Assembler.Parser.HasmToken Class Reference

Represents a token in a Hasm assembly file. More...

Inheritance diagram for Hasmer.Assembler.Parser.HasmToken:
Hasmer.Assembler.Parser.HasmFunctionModifierToken Hasmer.Assembler.Parser.HasmFunctionToken Hasmer.Assembler.Parser.HasmInstructionToken Hasmer.Assembler.Parser.HasmLabelToken Hasmer.Assembler.Parser.HasmLiteralToken Hasmer.Assembler.Parser.HasmOperandToken Hasmer.Assembler.Parser.HasmIdentifierToken Hasmer.Assembler.Parser.HasmIntegerToken Hasmer.Assembler.Parser.HasmNumberToken Hasmer.Assembler.Parser.HasmSimpleToken Hasmer.Assembler.Parser.HasmStringToken

Public Member Functions

 HasmToken (HasmStringStreamState? state)
 Creates a new HasmToken from the given state. This does not parse anything. More...
 
HasmStringStreamState AsStreamState ()
 
void Write (SourceCodeBuilder builder)
 Serializes the token to JSON. More...
 

Properties

int Offset [get, set]
 The offset in characters from the start of the file. More...
 
int Line [get, set]
 
int Column [get, set]
 

Detailed Description

Represents a token in a Hasm assembly file.

Constructor & Destructor Documentation

◆ HasmToken()

Hasmer.Assembler.Parser.HasmToken.HasmToken ( HasmStringStreamState state)
inline

Creates a new HasmToken from the given state. This does not parse anything.

Member Function Documentation

◆ Write()

void Hasmer.Assembler.Parser.HasmToken.Write ( SourceCodeBuilder  builder)
inline

Serializes the token to JSON.

Property Documentation

◆ Offset

int Hasmer.Assembler.Parser.HasmToken.Offset
getset

The offset in characters from the start of the file.


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