摘要 |
A method of processing declarative discourse to a sequence of declarations is disclosed. The declarative discourse is parsed, an object-oriented data structure is constructed, and the data structure is processed to provide declarations. The discourse includes representations of statements, entities, relations, and predicates. Entity representations include nominal and scoped entity representations; names are optional for the scoped entity representations. Statements includes one or more subject entity representation and, optionally, one or more predicate representations. Scoped entity representations include one or more predicate representations. The object-oriented data structure includes nominal entity, scoped entity, relation, predicate, and statement instances corresponding to the discourse constituents. Entity instances are processed to determine dispatch entities. Relation instances. are processed to determine dispatch relations. Scope and statement instances are processed to provide declarations that combine subject dispatch entities, dispatch relations, and object dispatch entities.
|