aac.context.lexeme

Provides lexical unit for a parsed AaC definition.

Classes

Lexeme(location, source, value)

A lexical unit for a parsed AaC definition.

class aac.context.lexeme.Lexeme(location: SourceLocation, source: str, value: str)[source]

A lexical unit for a parsed AaC definition.

Parameters:
location

The location at which the object was found.

Type:

SourceLocation

source

The source in which the object was found.

Type:

str

value

The value of the parsed object.

Type:

str

__eq__(_Lexeme__o) bool[source]

Return whether this Lexeme is the same as __o.

Return type:

bool

__str__() str[source]

Return a string representation of this Lexeme.

Return type:

str