26#ifndef FCML_LAG_ASSEMBLER_H_
27#define FCML_LAG_ASSEMBLER_H_
Structures and functions declarations related to one-line FCML assembler.
struct fcml_st_assembler fcml_st_assembler
Abstract assembler representation.
Definition fcml_assembler.h:43
fcml_uint16_t fcml_ceh_error
All error codes should be held in variables of this type.
Definition fcml_errors.h:156
LIB_EXPORT void LIB_CALL fcml_fn_lag_assembler_result_prepare(fcml_st_lag_assembler_result *result)
Prepares reusable result holder for assembler.
LIB_EXPORT fcml_ceh_error LIB_CALL fcml_fn_lag_assemble(fcml_st_lag_assembler_context *context, const fcml_string *source_code, fcml_st_lag_assembler_result *result)
Multipass load-and-go assembler.
LIB_EXPORT void LIB_CALL fcml_fn_lag_assembler_result_free(fcml_st_lag_assembler_result *result)
Cleans result holder.
API for symbols handling.
fcml_ptr fcml_st_symbol_table
Type for symbol tables.
Definition fcml_symbols.h:35
This structure represents an encoded instruction.
Definition fcml_assembler.h:87
Assembler runtime configuration.
Definition fcml_assembler.h:48
Container for all collected errors and warnings.
Definition fcml_errors.h:180
Describes the execution context for the instruction being assembled.
Definition fcml_common.h:838
Load-and-go assembler runtime context.
Definition fcml_lag_assembler.h:47
fcml_st_symbol_table symbol_table
Symbols table.
Definition fcml_lag_assembler.h:55
fcml_st_assembler_conf configuration
Assembler behavior can be configured here.
Definition fcml_lag_assembler.h:51
fcml_st_entry_point entry_point
Instruction entry point configuration.
Definition fcml_lag_assembler.h:53
fcml_st_assembler * assembler
Assembler instance that should be used to assemble instructions.
Definition fcml_lag_assembler.h:49
Result holder for load-and-go assembler.
Definition fcml_lag_assembler.h:37
fcml_int error_line
Number of line where assembler failed.
Definition fcml_lag_assembler.h:41
fcml_st_ceh_error_container errors
Error and warning messages from one-line assembler.
Definition fcml_lag_assembler.h:39
fcml_st_assembled_instruction * instructions
Chain of assembled instructions.
Definition fcml_lag_assembler.h:43