Skip to content

Commit 19619be

Browse files
committed
Drop metafix-web subproject.
See discussion in #426.
1 parent f0c1a53 commit 19619be

12 files changed

Lines changed: 30 additions & 508 deletions

File tree

README.md

Lines changed: 29 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,35 @@ Metafacture Fix (Metafix) is work in progress towards tools and an implementatio
109109

110110
See also [Fix Interest Group](https://github.com/elag/FIG) for an initiative towards an implementation-independent specification for the Fix Language.
111111

112-
The project `metafix` contains the actual implementation of the Fix language as a Metafacture module and related components. It started as an [Xtext](#xtext) web project with a Fix grammar, from which a parser, a web editor, and a language server are generated. This project also contains an extension for VS code/codium based on that language server. (The web editor has effectively been replaced by the [Metafacture Playground](https://metafacture.org/playground), but remains here for its integration into the language server, which [we want to move over](https://github.com/metafacture/metafacture-playground/issues?q=is%3Aissue+language+server+is%3Aopen) to the playground.)
112+
The project `metafix` contains the actual implementation of the Fix language as a Metafacture module and related components. It started as an [Xtext](#xtext) web project with a Fix grammar, from which a parser, a web editor, and a language server are generated. This project also contains an extension for VS code/codium based on that language server. (The web editor has been replaced by the [Metafacture Playground](https://metafacture.org/playground).)
113+
114+
```
115+
# Fix is a macro-language for data transformations
116+
117+
# Simple fixes
118+
119+
add_field("hello", "world")
120+
remove_field("my.deep.nested.junk")
121+
copy_field("stats", "output.$append")
122+
123+
# Conditionals
124+
125+
if exists("error")
126+
set_field("is_valid", "no")
127+
log("error")
128+
elsif exists("warning")
129+
set_field("is_valid", "yes")
130+
log("warning")
131+
else
132+
set_field("is_valid", "yes")
133+
end
134+
135+
# Loops
136+
137+
do list(path: "foo", "var": "$i")
138+
add_field("$i.bar", "baz")
139+
end
140+
```
113141
114142
## Usage
115143
@@ -147,48 +175,6 @@ vsce will create a vsix file in the vsc directory which can be used for installa
147175
4. Click 'Extensions' section
148176
5. Click menu bar and choose 'Install from VSIX...'
149177
150-
### Web editor
151-
152-
Start the web server:
153-
154-
`./gradlew jettyRun`
155-
156-
Visit [http://localhost:8080/](http://localhost:8080/), and paste this into the editor:
157-
158-
```
159-
# Fix is a macro-language for data transformations
160-
161-
# Simple fixes
162-
163-
add_field("hello", "world")
164-
remove_field("my.deep.nested.junk")
165-
copy_field("stats", "output.$append")
166-
167-
# Conditionals
168-
169-
if exists("error")
170-
set_field("is_valid", "no")
171-
log("error")
172-
elsif exists("warning")
173-
set_field("is_valid", "yes")
174-
log("warning")
175-
else
176-
set_field("is_valid", "yes")
177-
end
178-
179-
# Loops
180-
181-
do list(path: "foo", "var": "$i")
182-
add_field("$i.bar", "baz")
183-
end
184-
```
185-
186-
Content assist is triggered with Ctrl-Space. The input above is also used in `FixParsingTest.java`.
187-
188-
Run workflows on the web server, passing `data`, `flux`, and `fix`:
189-
190-
[http://localhost:8080/xtext-service/run?data='1'{'a': '5', 'z': 10}&flux=as-lines|decode-formeta|fix|encode-formeta(style="multiline")&fix=copy_field(a,c)](http://localhost:8080/xtext-service/run?data=%271%27{%27a%27:%20%275%27,%20%27z%27:%2010}&flux=as-lines|decode-formeta|fix|encode-formeta(style=%22multiline%22)&fix=copy_field(a,c))
191-
192178
## Functions and cookbook
193179
194180
### Best practices and guidelines for working with Metafacture Fix

build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ plugins {
2727
subprojects {
2828
ext {
2929
versions = [
30-
'ace': '1.3.3',
3130
'antlr': '3.5.2',
3231
'assertj': '3.27.7',
3332
'commons_compress': '1.28.0',
@@ -41,17 +40,14 @@ subprojects {
4140
'jdk': '11',
4241
'jdom': '2.0.6.1',
4342
'jena': '4.10.0',
44-
'jetty': '9.4.58.v20250814',
4543
'jndi': '0.11.4.1',
46-
'jquery': '3.3.1-1',
4744
'jsonpath': '2.10.0',
4845
'jsoup': '1.15.4',
4946
'junit': '4.13.1',
5047
'junit_jupiter': '5.8.2',
5148
'junit_platform': '1.4.2',
5249
'mockito': '2.27.0',
5350
'opencsv': '5.12.0',
54-
'requirejs': '2.3.6',
5551
'slf4j': '2.0.17',
5652
'slf4j_log4j': '2.25.4',
5753
'slf4j_mock': '2.4.0',

metafix-web/build.gradle

Lines changed: 0 additions & 36 deletions
This file was deleted.

metafix-web/src/main/java/org/metafacture/metafix/web/FixServlet.java

Lines changed: 0 additions & 118 deletions
This file was deleted.

metafix-web/src/main/java/org/metafacture/metafix/web/FixWebModule.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

metafix-web/src/main/java/org/metafacture/metafix/web/FixWebSetup.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

metafix-web/src/main/java/org/metafacture/metafix/web/ServerLauncher.java

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)