titus.pfaast.LiteralBase64

class titus.pfaast.LiteralBase64(value, pos=None)[source]

Bases: titus.pfaast.LiteralValue

Abstract syntax tree for a literal base-64 encoded binary.

class Context(retType, calls, value)

Bases: titus.pfaast.ExpressionContext

__init__(retType, calls, value)
LiteralBase64.__init__(value, pos=None)
LiteralBase64.desc = '(bytes)'
LiteralBase64.jsonNode(lineNumbers, memo)

Convert this abstract syntax tree to Pythonized JSON.

Parameters:
  • lineNumbers (bool) – if True, include locator marks in each JSON object
  • memo (set of string) – used to avoid recursion; provide an empty set if unsure
Return type:

Pythonized JSON

Returns:

JSON representation

LiteralBase64.walk(task, symbolTable, functionTable, engineOptions, version)

Walk over tree applying a titus.pfaast.Task while checking for semantic errors.

This is how Python is generated from an abstract syntax tree: the titus.pfaast.Task in that case is titus.genpy.GeneratePython.

Parameters:
Return type:

(titus.pfaast.AstContext, titus.pfaast.TaskResult)

Returns:

(information about this abstract syntax tree node after type-checking, result of the generic task)