Mercurial > ~dholland > hg > ag > index.cgi
view tests/agcl/parsifal/good/xml3.h @ 24:a4899cdfc2d6 default tip
Obfuscate the regexps to strip off the IBM compiler's copyright banners.
I don't want bots scanning github to think they're real copyright
notices because that could cause real problems.
author | David A. Holland |
---|---|
date | Mon, 13 Jun 2022 00:40:23 -0400 |
parents | 13d2b8934445 |
children |
line wrap: on
line source
#ifndef XML3_H #define XML3_H typedef enum { xml3_document_token = 1, xml3_prolog_token, xml3_element_token, xml3_Misc_token, xml3_SpaceChar_token = 7, xml3_S_token = 9, xml3_Name_token = 11, xml3_NameChar_token = 13, xml3_Names_token = 16, xml3_Nmtoken_token = 20, xml3_Nmtokens_token, xml3_EntityValue_token = 25, xml3_PEReference_token = 28, xml3_Reference_token, xml3_AttValue_token = 38, xml3_SystemLiteral_token = 45, xml3_PubidLiteral_token = 52, xml3_PubidChar_token, xml3_DataChar_token = 56, xml3_CharData_token = 58, xml3_Comment_token = 61, xml3_Char_token = 63, xml3_PI_token = 68, xml3_PITarget_token = 70, xml3_char_token, xml3_CDSect_token = 76, xml3_CDStart_token, xml3_CData_token, xml3_CDEnd_token, xml3_XMLDecl_token = 82, xml3_doctypedecl_token = 84, xml3_VersionInfo_token = 87, xml3_EncodingDecl_token, xml3_SDDecl_token = 90, xml3_Eq_token = 94, xml3_VersionNum_token, xml3_ExternalID_token = 101, xml3_markupdecl_token = 105, xml3_elementdecl_token = 111, xml3_AttlistDecl_token, xml3_EntityDecl_token, xml3_NotationDecl_token, xml3_extSubset_token, xml3_TextDecl_token, xml3_extSubsetDecl_token = 118, xml3_conditionalSect_token, xml3_Language_Id_token = 128, xml3_Langcode_token, xml3_Subcode_token = 131, xml3_ISO639Code_token = 135, xml3_IanaCode_token, xml3_UserCode_token, xml3_EmptyElemTag_token = 143, xml3_STag_token, xml3_content_token, xml3_ETag_token, xml3_Attribute_token = 148 } xml3_token_type; typedef struct xml3_pcb_struct{ xml3_token_type token_number, reduction_token, error_frame_token; int input_code; int input_value; int line, column; int ssx, sn, error_frame_ssx; int drt, dssx, dsn; int ss[128]; int vs[128]; int ag_ap; const char *error_message; char read_flag; char exit_flag; int bts[128], btsx; int lab[11], rx, fx; const unsigned char *key_sp; int save_index, key_state; char ag_msg[82]; } xml3_pcb_type; #ifndef PRULE_CONTEXT #define PRULE_CONTEXT(pcb) (&((pcb).cs[(pcb).ssx])) #define PERROR_CONTEXT(pcb) ((pcb).cs[(pcb).error_frame_ssx]) #define PCONTEXT(pcb) ((pcb).cs[(pcb).ssx]) #endif #ifndef AG_RUNNING_CODE /* PCB.exit_flag values */ #define AG_RUNNING_CODE 0 #define AG_SUCCESS_CODE 1 #define AG_SYNTAX_ERROR_CODE 2 #define AG_REDUCTION_ERROR_CODE 3 #define AG_STACK_ERROR_CODE 4 #define AG_SEMANTIC_ERROR_CODE 5 #endif extern xml3_pcb_type xml3_pcb; void init_xml3(void); void xml3(void); #endif