Next: , Previous: , Up: Recognizer methods   [Contents][Index]


19.2 Creating a new recognizer

Constructor function: Marpa_Recognizer marpa_r_new ( Marpa_Grammar g )

On success, creates a new recognizer and increments the reference count of g, the base grammar, by one. In the new recognizer, the following will be true:

Return value: On success, the newly created recognizer, which is never NULL. If g is not precomputed, or on other hard failure, NULL.