Public Attributes
rparecord_s Struct Reference

List of all members.

Public Attributes

ruint32 top
ruint32 size
const char * rule
const char * input
unsigned long inputoff
unsigned long inputsiz
ruint32 type
ruint32 ruleid
ruint32 ruleuid
ruint32 usertype
ruword userdata

Detailed Description

<rpa/rparecord.h> Abstract Syntax Tree (AST) construction element.

Examples:

personname.c.


Member Data Documentation

const char* rparecord_s::input

Pointer in the input stream. This pointer points to memory inside the input buffer passed to rpa_stat_parse, make sure this memory is still valid while accessing this pointer.

Examples:
personname.c.
unsigned long rparecord_s::inputoff

Input offset, calculated from the start parameter passed to rpa_stat_parse

unsigned long rparecord_s::inputsiz

Size of input

Examples:
personname.c.
const char* rparecord_s::rule

Name of the rule that generated this record. This pointer points to memory allocated inside rpadbex_t, so make sure rpadbex_t object is still valid while accessing this pointer.

Examples:
personname.c.

Unique ID, identifying the BNF rule that created the record

User specified Rule ID. If you used directive emitid for this rulename, this member will contain the specified ID

Examples:
personname.c.

This is a private member, used by the engine and is not significant to the user

This is a private member, used by the engine and is not significant to the user

Record Type: RPA_RECORD_START or RPA_RECORD_END

Examples:
personname.c.

Scratch area. This member can be used to associate some user specific data with this record.

User specified type.


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