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

12.2 Creating a new recognizer

Function: Marpa_Recognizer marpa_r_new ( Marpa_Grammar g )

Creates a new recognizer. The reference count of the recognizer will be 1. The reference count of g, the base grammar, will be incremented by one.

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