[add] rex build jar

This commit is contained in:
Andy Bunce 2025-08-16 18:01:03 +01:00
parent 2078055d05
commit c8e4f928b1
19 changed files with 8211 additions and 5119 deletions

1
bundles/grammar/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
build

View file

@ -1,6 +1,6 @@
/* XQuery 4.0: An XML Query Language
* version https://qt4cg.org/specifications/xquery-40/
* extracted from https://qt4cg.org/specifications/xquery-40/xquery-40.html on Tue Jul 29, 2025, 19:30 (UTC+02)
* extracted from https://qt4cg.org/specifications/xquery-40/xquery-40.html on Tue Aug 12, 2025, 21:13 (UTC+02)
* and transformed by rexify-xquery-40.xq
*/
@ -705,6 +705,7 @@ PostfixExpr
| FilterExpr
| DynamicFunctionCall
| LookupExpr
| MethodCall
| FilterExprAM
PrimaryExpr
::= Literal
@ -860,7 +861,6 @@ StringTemplate
/* ws: explicit */
StringTemplateVariablePart
::= EnclosedExpr
/* ws: explicit */
StringConstructor
::= '``[' StringConstructorContent ']``'
/* ws: explicit */
@ -869,13 +869,14 @@ StringConstructorContent
/* ws: explicit */
StringInterpolation
::= '`' EnclosedExpr '`'
/* ws: explicit */
UnaryLookup
::= Lookup
Lookup ::= '?' KeySpecifier
KeySpecifier
::= NCName
| IntegerLiteral
| StringLiteral
| Literal
| ContextValueRef
| VarRef
| ParenthesizedExpr
| LookupWildcard
@ -891,6 +892,8 @@ PositionalArgumentList
::= '(' PositionalArguments? ')'
LookupExpr
::= PostfixExpr Lookup
MethodCall
::= PostfixExpr '?>' NCName PositionalArgumentList
FilterExprAM
::= PostfixExpr '?[' Expr ']'
AxisStep ::= ( AbbreviatedStep | FullStep ) Predicate*
@ -1208,6 +1211,7 @@ URIQualifiedName
BracedURILiteral
::= 'Q' '{' ( PredefinedEntityRef | CharRef | [^&{}] )* '}'
/* ws: explicit */
EOF ::= $
IntegerLiteral
::= Digits
/* ws: explicit */
@ -1215,7 +1219,6 @@ Digits ::= DecDigit ( ( DecDigit | '_' )* DecDigit )?
/* ws: explicit */
DecDigit ::= [0-9]
/* ws: explicit */
EOF ::= $
Wildcard ::= '*'
| NCName ':*'
| '*:' NCName

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
import module namespace xq4="java:quodatum.parser.xq4";
"C:\Users\mrwhe\git\quodatum\basex-lsp\test\sample.docs\pdfbox.xqm"
=>unparsed-text()
=>xq4:parseModule()

BIN
bundles/grammar/xq4.jar Normal file

Binary file not shown.

1631
bundles/grammar/xq4.java Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
import { EditorState } from '@codemirror/state';
import { openSearchPanel, highlightSelectionMatches,searchKeymap } from '@codemirror/search';
import {openLintPanel, lintGutter, lintKeymap,linter,setDiagnostics} from "@codemirror/lint"
import {openLintPanel, lintGutter, lintKeymap,linter,setDiagnostics,} from "@codemirror/lint"
import { indentWithTab, history, defaultKeymap, historyKeymap } from '@codemirror/commands';
import { foldGutter, indentOnInput, indentUnit, bracketMatching, foldKeymap, syntaxHighlighting, defaultHighlightStyle } from '@codemirror/language';
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap } from '@codemirror/autocomplete';
@ -28,10 +28,6 @@ function simpleWebSocketTransport(uri) {
});
};
function client(transport){
return new LSPClient().connect(transport)
};
const baseExts = [
lineNumbers(),
@ -80,6 +76,10 @@ function createEditorState(initialContents, extensions,options = {}) {
function createEditorView(state, parent) {
return new EditorView({ state, parent });
}
class xqLinter {
constructor(parameters) {
this.fred=parameters;
}
}
export { createEditorState, createEditorView, openSearchPanel,openLintPanel, languageServerSupport, baseExts ,client, simpleWebSocketTransport,linter, LSPPlugin,setDiagnostics};
export { createEditorState, createEditorView, openSearchPanel,openLintPanel, languageServerSupport, baseExts , simpleWebSocketTransport,linter, LSPPlugin,setDiagnostics,xqLinter,LSPClient};