Files
Ken Domino bf61744020
Some checks failed
CI / setup (push) Has been cancelled
CI / build-pwsh (push) Has been cancelled
CI / stale-links (push) Has been cancelled
CI / static-check (ubuntu-latest, ambiguity) (push) Has been cancelled
CI / static-check (ubuntu-latest, format) (push) Has been cancelled
CI / static-check (ubuntu-latest, no-symbolic-links) (push) Has been cancelled
CI / static-check (ubuntu-latest, useless-parens) (push) Has been cancelled
CI / maven (ubuntu-latest) (push) Has been cancelled
[many grammars] Fix for #4742, #4750: stale links, crosslink grammars-v4 and pldb. (#4746)
* Fix for #4742: synchronize PLDB and grammars-v4 cross-references.

- Add/update PLDB links in all 379 grammar readmes (http://pldb.info/concepts/{concept})
- Standardize "## Links" headings to "## Reference"
- Create readme.md for ~80 grammars that had none
- 162 grammars matched to PLDB concepts; unmatched grammars get empty Reference section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add script to crosslink grammars-v4 and pldb.

* Fix problems.

* Updated sync_pldb.py and results of running it.

* Fix some stale links.

* Updates for some stale links. Disable macos testing because trxml2 or build script is not working.

On macos, we are getting "Could not find antlr4-trac.g4-complete.jar at maven.org". This should not happen because the version found should be correct. But, it sometimes does not work on macos.

* Fix stale links.

* Fix find-stale-links.sh to not report HTTP 418 redirects.

* Fix stale links.

* Fix stale links.

* Fix stale links. Fix find-stale-links.sh to skip directories with -examples suffix

Fix more files with stale links.

The script's example directory filter only matched directories starting with "example" or "examples" (e.g., examples/,
   examples-foo/). Directories like more-examples/ that use a prefix before "examples" were not caught, causing the script to
  unnecessarily check URLs in parse test files. Updated the regex to also match directories with an arbitrary prefix ending in
  -examples (e.g., more-examples/, foo-bar-examples/).

* Fix stale links.

* Re-enabling macos testing.

Change template st.build.ps1 to remove backquotes, put on one line, and output the actual version string.

* Add debugging information.

* More debugging, plus force version if empty.

* Update stale link check for 504--a timeout.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 07:40:08 -07:00
..
2023-11-29 08:14:25 -07:00

BCPL Grammar

Source

The source for the grammar is Richards, Martin, and Colin Whitby-Strevens. BCPL: the language and its compiler. Cambridge University Press, 1981., Chapter 8. The grammar was entered by hand and the adapted to Antlr4. Afterwards, the script transform.sh, which uses Trash to remove mutual left recursion, and define an appropriate partition between lexer and parser.

Examples

The examples included we[re gathered from the Internet. The best source is the source for the compiler, bcpl.gtz.

March 14, 2021.

Reference