Major improvements in the XQuery syntax checking infrastructure.
This commit is contained in:
parent
ae085ef410
commit
667fb57f7a
2 changed files with 1680 additions and 0 deletions
1652
lib/ace/mode/xquery/StringLexer.js
Normal file
1652
lib/ace/mode/xquery/StringLexer.js
Normal file
File diff suppressed because it is too large
Load diff
28
lib/ace/mode/xquery/XQDTLexer.js
Normal file
28
lib/ace/mode/xquery/XQDTLexer.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
define(function(require, exports, module){
|
||||
|
||||
var org = require("./antlr3-all").org;
|
||||
|
||||
var XQDTLexer = exports.XQDTLexer = function(input, state)
|
||||
{
|
||||
XQDTLexer.superclass.constructor.call(this, input, state);
|
||||
};
|
||||
|
||||
org.antlr.lang.extend(XQDTLexer, org.antlr.runtime.Lexer, {
|
||||
|
||||
isWsExplicit: false,
|
||||
|
||||
setIsWsExplicit: function (wsExplicit) {
|
||||
isWsExplicit = wsExplicit;
|
||||
},
|
||||
|
||||
addToStack: function (stack) {
|
||||
stack.push(this);
|
||||
},
|
||||
|
||||
rewindToIndex: function(index) {
|
||||
var stream = this.input;
|
||||
stream.seek(index);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue