tscore
framework.See: Description
| Interface | Description |
|---|---|
| Translet.Parseable<D> |
Used to retrieve a
Translet.Parser in a particular (human) language,
to plug it into the tscore parsing process. |
| Class | Description |
|---|---|
| DottedNotationExpander |
For musical purposes it is utmost convenient to support the "dotted notation",
using "prolongation dots", short "dots".
|
| Dumper |
Class for debugging purpose which prints unparsed tscore event sequences.
|
| Entity<E extends Entity> |
Base class for all things which are in a certain multi-lingual catalog, and
have a common parser for their symbolic appearance in scores,
and which form a common semantic domain.
|
| EntityCatalog<E extends Entity> |
Contains collection of basic score entities used as parameter values,
indexed and documented in a multi lingual way.
|
| EventPatternDistributor |
Looks for start/end of pattern repetition and constructs the representing
Event ->Event relation.
|
| GroupCollector |
Collects sets of adjacent events from one single voice.
|
| Modifiers | |
| PatternDistributor |
Looks for repettions of a pattern in a certain parameter track
and distributes it event-wise to the successor events.
|
| RawParser |
Recursive-descent parser for the raw level of tscore.
|
| TendencyCollector<E extends Entity> |
Processes a parameter track which contains tendencies spanning more than one
Event. |
| Translet |
Base class for constructing user defined parsers by combinators;
originally for the values
contained in the different parameter tracks of a tscore voice.
|
| Translet._CAT<R> |
Implements a greedy longest prefix match from a collection of strings.
|
| Translet._CONST<R> |
Parser for a simple string constant which must appear verbatim, as is.
|
| Translet._REGEX |
Parser for text input following a regular expression.
|
| Translet.Alternative |
Realizes a protocol tree of alternatives to the parsing results.
|
| Translet.CoTupleParser<A,B,C,D> |
Common superclass for Parsers which accept one of many alternatives
and return a
CoTuple (ORn and PRIORn). |
| Translet.FormatPrinter_memo |
Format printer which puts maximally one ParserFormat to each screen column
and memorizes this for later alignment of consumed char data.
|
| Translet.FramedParser<A> |
Accepts a sequence "A,B,C", where only the middle parsing/processing result is
stored as result in the
Translet.State object, discarding the frame. |
| Translet.HeadParser<A> |
Accepts a sequence "A,B,..", where only the very first parsing/processing result is
stored as result in the
Translet.State object, discarding all the tail. |
| Translet.LimesParser<A> |
Common superclass for Parsers which accept one of many alternatives
and return the upper limit of the different result classes (OR1 and PRIOR1).
|
| Translet.OptionParser<D> |
Option parser, in greedy and non-deterministic variant, with or without default value.
|
| Translet.OrCoTupleParser<A,B,C,D> |
Realizes disjunction which is nondeterministic and returns a CoTuple.
|
| Translet.OrLimesParser<A> |
Realizes disjunction which is nondeterministic and returns an upper limit class.
|
| Translet.Parser<R> |
Base class for all parser classes, contains most of the working methods.
|
| Translet.ParserFormat |
Specialized Format which refers to a Parser for alignment of char data.
|
| Translet.PermutationParser<R,A,B,C,D,E,F,G,H> |
Variant of
Translet.ProductParser which accepts all permutations of sub-parsers. |
| Translet.PlusParser<D> |
Repetition parser which does not allow allow empty list as result.
|
| Translet.PriorCoTupleParser<A,B,C,D> |
Realizes disjunction which is priorized and returns a CoTuple.
|
| Translet.PriorLimesParser<A> |
Realizes disjunction which is priorized and returns an upper limit class.
|
| Translet.ProductParser<R,A,B,C,D,E,F,G,H> |
Common superclass for Parsers which produce a product type as their result.
|
| Translet.Recursive<R> |
A placeholder which can be formandum into a parser construct, and
later be assigned the complete parser as a whole, for recursive use.
|
| Translet.RepParser<D> |
Common superclass for
Translet.StarParser and Translet.PlusParser. |
| Translet.SequParser<R,A,B,C,D,E,F,G,H> |
Variant of
Translet.ProductParser which accepts a certain sequence of sub-parsers. |
| Translet.StarParser<D> |
Repetition parser which allows empty list as result.
|
| Translet.State<R> |
Central data type for parser operation.
|
| Translet.StorageWrapper<S> |
Common superclass of the storing oeprators.
|
| Translet.Store_1<S> |
Storing operator which only one(1) value per key.
|
| Translet.Store_M<S> |
Storing operator which can store multiple (>1) values per key.
|
| TransletLib |
Library of universal
Translet parsers, and of auxiliary functions
to be used in such parsers. |
| TransletLib._TEST<R> |
Filters the result of its sub-parser by an explicit Java-encoded boolean predicate.
|
| Util |
Collection of static utility methods.
|
| Util.Multimap_LTree<A,B> |
Employed for the central map from a "naturally" ordered arithmetic type (like
Rational, BigInteger, etc.) to Tp objects representing time points, allowing their
time-respecting traversal.
|
| Util.Pairwise<T> |
Visitor which performs the method
Util.Pairwise.first(Object)
for the first element of an Iterable; afterwards the methodUtil.Pairwise.pairwise(Object,Object)
for each pair of adjacent elements, and at last the method Util.Pairwise.last(Object). |
| Util.Triplewise<T> |
Visitor which performs the method
Util.Triplewise.action(Object,Object,Object)
for triples of adjacent elements of an Iterable. |
| Enum | Description |
|---|---|
| EventPatternDistributor.Phase | |
| GroupCollector.Kind |
Kind of group commands, to be stored in
GroupCollector.GroupEvent. |
| Modifiers.Reaction |
Encodes how the code will react to a specific input condition.
|
| PatternDistributor.Phase |
States of the state machine.
|
| Translet.disj_flavour |
Kinds of disjunctive parser combinators.
|
tscore
framework.
TScoreLexer translates
some text input into a token stream.
RawParser.
This creates an instance of the umod model from eu.bandm.tscore.model
Here the items one level below the mere event structure are still
unparsed.
Translet.Parser.
Their output data in most cases will be encoded in instances of classes
derived from Entity.
The functionality is not at all restricted to conventional music notation. Nevertheless this realm is supported by further packages built upon this basic framework:
eu.bandm.music.entities contains extensions and specializations
of the classes contained herein.
eu.bandm.music.top combines code of that and this
package to realize score formats.