[DGD] Re: parse_string() vs. sscanf()
    Thorsten Lockert 
    tholo at sigmasoft.com
       
    Thu Feb 19 03:15:26 CET 1998
    
    
  
> The sscanf() is far more efficient.  The parse_string() version has to:
>  - parse the grammar
>  - build a partial DFA for the regular expressions
>  - build a partial shift/reduce parser for the grammar
>  - parse the the string according to the grammar
Given this, would it not make sense to be able to do the first three steps
once, and save it away in a variable so that it then could be used again
and again without having to rebuild them if other parse trees has been used
inbetween?
Thorsten
List config page:  http://list.imaginary.com/mailman/listinfo/dgd
    
    
More information about the DGD
mailing list