Make the common library provide interpreter nodes for
the common data types, such that each node is a
callable item that returns a value
(re-entrant/thread-safe) and can be included as an
instance/object in a Parser namespace.
from simpleparse.common import strings, numbers
class MyParser( Parser ):
string = strings.StringInterpreter()
number = numbers.NumerInterpreter()
Such that, if we include the production, we can also
include a stand-alone interpreter that converts the
value to a usable Python value. Obviously that's only
useful for simple data types, but it would make for
easier use of the libraries (and avoid poluting the
user's parser class with sub-production rules).