void NUEDataManager::ParseOneEntry(const char* entry_start)
{
    p_semi = strchr(entry_start,';');
    assert(p_semi);


    m_input  =
antlr3NewAsciiStringInPlaceStream((pANTLR3_UINT8)entry_start,p_semi-entry_start+1,NULL);
    m_lex    = StepDataEntryLexerNew(m_input);
    m_tokens = antlr3CommonTokenStreamSourceNew(ANTLR3_SIZE_HINT,
TOKENSOURCE(m_lex));
    m_parser = StepDataEntryParserNew(m_tokens);

    m_parser  ->entry(m_parser,id);

    m_parser->free(m_parser);
    m_tokens->free(m_tokens);
    m_lex->free(m_lex);
    m_input->close(m_input);
}


the ParseOneEntry function will be called more than 1000000 times in most
cases.
So I am wondering if it is feasible to get this piece of code improved
further?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to