Пример #1
0
accept_t lexer_read_literal(struct lexer_book * bk)
{
    int c = lexer_next_peek(bk);

    if(c == '\'')
        return lexer_read_literal_quoted(bk);
    else
        return lexer_read_literal_unquoted(bk);
}
Пример #2
0
int lexer_read_literal(struct lexer * lx)
{
	int c = lexer_next_peek(lx);

	if(c == '\'')
		return lexer_read_literal_quoted(lx);
	else
		return lexer_read_literal_unquoted(lx);
}