Package jazzparser :: Package formalisms :: Package music_halfspan :: Class Formalism :: Class Semantics
[hide private]
[frames] | no frames]

Class Semantics

source code

FormalismBase.Semantics --+
                          |
                         Formalism.Semantics

Formalisms should define override this nested class with their own, which will specify values for these attributes.

Nested Classes [hide private]
  Semantics
hash(x)
Static Methods [hide private]
 
apply(fn, arg, grammar=None)
Applies fn to arg by creating a FunctionApplication and returns the result.
source code
 
compose(f, g, grammar=None)
Performs logical composition in this semantic formalism.
source code
Method Details [hide private]

apply(fn, arg, grammar=None)
Static Method

source code 

Applies fn to arg by creating a FunctionApplication and returns the result. This is used for formalism-unspecific access to this feature.

Overrides: apply

compose(f, g, grammar=None)
Static Method

source code 

Performs logical composition in this semantic formalism.

Overrides: compose