Update.
Some checks are pending
WrenCI / linux (push) Waiting to run
WrenCI / mac (push) Waiting to run
WrenCI / windows (push) Waiting to run

This commit is contained in:
retoor 2026-01-25 06:08:44 +01:00
parent 2e425571ca
commit e4a94d576b
2 changed files with 51 additions and 0 deletions

View File

@ -11,5 +11,14 @@ debug:
tests: build
python3 util/test.py
create_docs:
wren apps/merge_docs.wren
create_training_data:
python create_training_data.py --manual-html manual.md --out-train training_data.jsonl --out-val training_data_val.jsonl
install:
cp bin/wren_cli /usr/local/bin/wren
clean:
cd projects/make && $(MAKE) -f wren_cli.make clean

42
apps/merge_docs.wren vendored Normal file
View File

@ -0,0 +1,42 @@
import "pathlib" for Path
var startTime = System.clock
var all = []
all.add("# Customized version of the wren programming language.")
all.add("This is the documentation of the highly customized wren programming language.")
all.add("")
all.add("## Extensions")
all.add("The following futures are built on top of the native wren interpreter:")
all.add(" - wdantic library based on PyDantic")
all.add(" - dataset library based on Python dataset module (ornm for lazy people)")
all.add(" - aiohttp library based fromework called `web`")
all.add(" - pathlib library based on Python pathlib")
all.add(" - regex validator library")
all.add(" - json encoder / decoder library")
all.add(" - networking library")
all.add(" - html library")
all.add(" - websocket library")
all.add("")
all.add("## Documentation")
for (path in Path.new("manual").rglob("*.html")) {
all.add("### " + path.name)
all.add("```html```")
all.add(path.readText())
all.add("```")
all.add("---")
all.add("")
}
var destination = Path.new("manual.md")
destination.writeText(all.join("\n"))
var duration = System.clock - startTime
System.print("Written to: manual.md.")
System.print("Duration: " + duration.toString + " Ms.")
System.print("Size: " + destination.stat().size.toString + " bytes.")