Finished support for new connector type

This commit is contained in:
DadaMonad
2014-11-25 15:51:30 +00:00
parent 03925ab32f
commit e1900e8561
170 changed files with 73970 additions and 8705 deletions

View File

@@ -1,5 +1,5 @@
(function() {
var Engine, HistoryBuffer, JsonFramework, json_types_uninitialized;
var Engine, HistoryBuffer, JsonFramework, adaptConnector, json_types_uninitialized;
json_types_uninitialized = require("../Types/JsonTypes");
@@ -7,15 +7,18 @@
Engine = require("../Engine");
adaptConnector = require("../ConnectorAdapter");
JsonFramework = (function() {
function JsonFramework(user_id, Connector) {
function JsonFramework(user_id, connector) {
var beg, end, first_word, type_manager, uid_beg, uid_end;
this.connector = connector;
this.HB = new HistoryBuffer(user_id);
type_manager = json_types_uninitialized(this.HB);
this.types = type_manager.types;
this.engine = new Engine(this.HB, type_manager.parser);
this.HB.engine = this.engine;
this.connector = new Connector(this.engine, this.HB, type_manager.execution_listener, this);
adaptConnector(this.connector, this.engine, this.HB, type_manager.execution_listener);
first_word = new this.types.JsonType(this.HB.getReservedUniqueIdentifier());
this.HB.addOperation(first_word).execute();
uid_beg = this.HB.getReservedUniqueIdentifier();

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
(function() {
var Engine, HistoryBuffer, TextFramework, text_types_uninitialized;
var Engine, HistoryBuffer, TextFramework, adaptConnector, text_types_uninitialized;
text_types_uninitialized = require("../Types/TextTypes");
@@ -7,14 +7,17 @@
Engine = require("../Engine");
adaptConnector = require("../ConnectorAdapter");
TextFramework = (function() {
function TextFramework(user_id, Connector) {
function TextFramework(user_id, connector) {
var beg, beginning, end, first_word, text_types, uid_beg, uid_end, uid_r;
this.connector = connector;
this.HB = new HistoryBuffer(user_id);
text_types = text_types_uninitialized(this.HB);
this.types = text_types.types;
this.engine = new Engine(this.HB, text_types.parser);
this.connector = new Connector(this.engine, this.HB, text_types.execution_listener, this);
adaptConnector(this.connector, this.engine, this.HB, text_types.execution_listener);
beginning = this.HB.addOperation(new this.types.Delimiter({
creator: '_',
op_number: '_beginning'

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
(function() {
var Engine, HistoryBuffer, XmlFramework, json_types_uninitialized;
var Engine, HistoryBuffer, XmlFramework, adaptConnector, json_types_uninitialized;
json_types_uninitialized = require("../Types/XmlTypes");
@@ -7,15 +7,18 @@
Engine = require("../Engine");
adaptConnector = require("../ConnectorAdapter");
XmlFramework = (function() {
function XmlFramework(user_id, Connector) {
function XmlFramework(user_id, connector) {
var beg, end, type_manager, uid_beg, uid_end;
this.connector = connector;
this.HB = new HistoryBuffer(user_id);
type_manager = json_types_uninitialized(this.HB);
this.types = type_manager.types;
this.engine = new Engine(this.HB, type_manager.parser);
this.HB.engine = this.engine;
this.connector = new Connector(this.engine, this.HB, type_manager.execution_listener, this);
adaptConnector(this.connector, this.engine, this.HB, type_manager.execution_listener);
uid_beg = this.HB.getReservedUniqueIdentifier();
uid_end = this.HB.getReservedUniqueIdentifier();
beg = this.HB.addOperation(new this.types.Delimiter(uid_beg, void 0, uid_end)).execute();

File diff suppressed because one or more lines are too long