Automa.Variables
— TypeStruct used to store variable names used in generated code. Contained in a CodeGenContext
. Create a custom Variables
for your CodeGenContext
if you want to customize the variables used in Automa codegen, typically if you have conflicting variables with the same name.
Automa generates code with the following variables, shown below with their default names:
p::Int
: current position of datap_end::Int
: end position of datais_eof::Bool
: Whetherp_end
marks end file streamcs::Int
: current statedata::Any
: input datamem::SizedMemory
: Memory wrappingdata
byte::UInt8
: current byte being read fromdata
buffer::TranscodingStreams.Buffer
: (generate_reader
only)
Example
julia> ctx = CodeGenContext(vars=Variables(byte=:u8));
+true