Skip to content

Core Directory

Sahar Mehrpour edited this page May 20, 2020 · 2 revisions

generated-parser

These files are auto generated by ANTLR. The files matches the name of the .g4 file which is myGrammar.g4. To remove eslint errors on these files, /* eslint-disable */ should be added on top of myGrammarLexer.js and myGrammerParser.js.

generateXPath.js

This class generates XPath queries based on ANTLR parse trees. The definition is heavily dependant on the grammar.

ruleExecutor.js

This file includes a list of methods for executing the rules (i.e., XPath queries) under different conditions. The implementation is depends on the properties of rules in ruleTable.

utilities.js

This class lists utility methods:

  • sendToServer: send data to the server. It also breaks big data using sendChunkedData into smaller chunks.

  • ResultArraysEqual: compares if two arrays are equal

  • cloneXML: deep copy of an XML data

  • cloneJSON: deep copy of JSON data

  • arrayContains: check whether one array contains all elements of the other array

  • arrayMove: move an element of an array in index old_index to new_index.

  • webSocketManager: a class for building a connection with WebSocket and receive data.

Clone this wiki locally