X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_hilo.lex;h=91735f1e1c7eb6600463cee60d4f727b9cf0db6d;hb=177218adadc7aa92a1c14e6b8b33080dc77d6e4e;hp=60b7a1a280bd41f4eea0ab9c026109251ab1045a;hpb=afa899b84bdecf41c1ea5e888967e51b2444e669;p=gedcom-parse.git diff --git a/gedcom/gedcom_hilo.lex b/gedcom/gedcom_hilo.lex index 60b7a1a..91735f1 100644 --- a/gedcom/gedcom_hilo.lex +++ b/gedcom/gedcom_hilo.lex @@ -25,7 +25,8 @@ /* i.e. this is utf-16-be */ %{ -#undef IN_LEX /* include only a specific part of the following file */ +#define LEX_SECTION 1 /* include only a specific part of the following file */ +#define yymyinit gedcom_hilo_myinit #include "gedcom_lex_common.c" static size_t encoding_width = 2; @@ -40,6 +41,7 @@ delim \x00\x20 tab \x00[\t] hash \x00# literal_at \x00@\x00@ +normal_at \x00@ otherchar \x00[\x21-\x22\x24-\x2F\x3A-\x3F\x5B-\x5E\x60\x7B-\x7E\x80-\xFF]|[\x01-\xFF][\x00-\xFF] terminator \x00\x0D|\x00\x0A|\x00\x0D\x00\x0A|\x00\x0A\x00\x0D @@ -50,12 +52,13 @@ alphanum {alpha}|{digit} gen_delim {delim}|{tab} escape \x00@\x00#{any_char}+\x00@ -pointer \x00@{alphanum}{non_at}+\x00@ +pointer \x00@{alphanum}{non_at}*\x00@ %% %{ -#define IN_LEX /* include only a specific part of the following file */ +#undef LEX_SECTION +#define LEX_SECTION 2 /* include only a specific part of the following file */ #include "gedcom_lex_common.c" ACTION_BEFORE_REGEXPS @@ -212,14 +215,14 @@ ACTION_BEFORE_REGEXPS <> ACTION_EOF +{normal_at} ACTION_NORMAL_AT + . ACTION_UNEXPECTED %% - -int yywrap() -{ - return 1; -} +#undef LEX_SECTION +#define LEX_SECTION 3 /* include only a specific part of the following file */ +#include "gedcom_lex_common.c" #ifdef LEXER_TEST int gedcom_lex()