mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 18:52:50 -06:00
added PGF(pIdent,pExpr)
This commit is contained in:
@@ -227,6 +227,7 @@ PgfExprParser::PgfExprParser(PgfText *input, PgfUnmarshaller *unmarshaller)
|
||||
pos = (const char*) &inp->text;
|
||||
ch = ' ';
|
||||
u = unmarshaller;
|
||||
token_pos = NULL;
|
||||
token_value = NULL;
|
||||
|
||||
token();
|
||||
@@ -347,16 +348,18 @@ void PgfExprParser::str_char()
|
||||
|
||||
void PgfExprParser::token()
|
||||
{
|
||||
while (isspace(ch)) {
|
||||
ch = getc();
|
||||
}
|
||||
|
||||
if (token_value != NULL)
|
||||
free(token_value);
|
||||
|
||||
token_tag = PGF_TOKEN_UNKNOWN;
|
||||
token_pos = pos;
|
||||
token_value = NULL;
|
||||
|
||||
while (isspace(ch)) {
|
||||
token_pos = pos;
|
||||
ch = getc();
|
||||
}
|
||||
|
||||
switch (ch) {
|
||||
case EOF:
|
||||
ch = getc();
|
||||
@@ -921,7 +924,6 @@ exit:
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
PGF_INTERNAL
|
||||
void pgf_literal_free(PgfLiteral literal)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user