|
|
vor 2 Wochen | |
|---|---|---|
| .. | ||
| README.md | vor 2 Wochen | |
| build.sh | vor 2 Wochen | |
| corpus.sh | vor 2 Wochen | |
Corpus harness for the historical TopSpeed / JPI V3 dialect, using
the sidecar grammar compiler/src/TopSpeed-V3-M2.atg.
The sidecar is a grammar deliverable: it parses the TS-V3 dialect
(pragmas, H/C/B literals, ::=, anchored subranges, address
constructors, CLASS/IS/VIRTUAL, manifest constants, tagless and
trailing-| variant records, ...). Constructs the current backend
cannot lower yet still parse and end with the standard
SemError(230) marker (parse-now / lower-later), exactly like
M2.atg.
./build.sh # -> build/TSM2 (build/ is git-ignored)
It copies the grammar, the V3 frames (scanner/parser/compiler.frm)
and the V3 SymTab/QbeGen/FileIO sources into build/, runs
CR -m -C, compiles with gm2 -fiso and links TSM2. Needs the
project CR ($HOME/Projets/Projets-Modula2/MyWork/CocoGm2/CR) and
GNU Modula-2.
./corpus.sh [corpus-dir] # default: $HOME/bin/Dos/M2/TS-V3
Runs TSM2 over every .DEF/.MOD, copying each into a scratch tree
so the .LST listings never touch the corpus, and reports:
230/semantic markers,'x' expected, invalid X).Current result on the TS-V3 tree (662 files, 352 .DEF + 310 .MOD):
631 parse-OK / 31 syntax-bad — see
docs/summary_topspeed-corpus.md.