public abstract class KTM_Grammar
extends java.lang.Object
KinTermMatrix
files (*.ktm) stored in the Library. Each .ktm file records the matrix for one
context (culture or language). This grammar is coded into the class KTMParser
.
KTM -> Matrix, IndexRef, IndexAddr.
Matrix -> <matrix>, Rows, </matrix>.
Rows -> <row>, integer, CellPairs, </row>, Rows. | \empty.
CellPairs -> integer, Cell, CellPairs. | \empty.
Cell -> <tag>, Value, TagValPairs.
TagValPairs -> <tag>, Value, TagValPairs. | \empty.
Value -> integer. | List. | symbol. | string.
List -> leftParen, Item, OtherItems, rightParen.
Item -> integer. | symbol. | List. | string.
OtherItems -> comma, Item, OtherItems. | \empty.
IndexRef -> <indexRef>, IndexRows, </indexRef>.
IndexRows -> <row>, symbol, IndexPairs, </row>. | \empty
IndexPairs -> integer, IntList, IndexPairs. | \empty.
IntList -> leftParen, Integers, rightParen.
Integers -> integer, OtherIntegers.
OtherIntegers -> comma, integer, OtherIntegers. | \empty.
IndexAddr -> <indexAddr>, IndexRows, </indexAddr>.
Constructor and Description |
---|
KTM_Grammar() |