Go to file
Burkhart Wolff a69cca8780 Add a semantic-backend hook to C11 and occam2
full_eval_and_store now ends by applying a function of type root -> theory -> theory
kept in the theory context (CEnv.Backend / OEnv.Backend), K I by default. The new
command setup_backend installs another one (ML source, like setup). Tests and manual
entries for both front-ends.

occam2: the _reject commands are now thy_decl instead of diag; Isabelle runs diag
commands in parallel with the following commands, which raced on the process-wide
lexer state and made occam2 units fail sporadically.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:03:56 +01:00
.bin Initial commit. 2026-06-08 14:34:51 +01:00
C11 Add a semantic-backend hook to C11 and occam2 2026-11-10 14:03:56 +01:00
Isabelle_Lex-Yacc Restructured project to simplify synchronisation with AFP 2026-10-30 04:55:21 +00:00
occam2 Add a semantic-backend hook to C11 and occam2 2026-11-10 14:03:56 +01:00
.envrc Sync with AFP (development version). 2026-10-30 04:53:27 +00:00
.gitignore Add occam2 manual as a sub-session with PDF generation 2026-10-21 09:40:30 +02:00
LICENSE Updated license. 2026-06-16 10:50:09 +01:00
README.md Updated license. 2026-06-16 10:50:09 +01:00

Lex and Yacc for Isabelle/ML

This repository provides a deep integration of ml-lex and ml-yacc into Isabelle/ML (and, hence, Isabelle/HOL).

ml-lex and ml-yacc

The work is based on the port of ml-lex and ml-yacc of the sml/nj project to Poly/ML:

These tools have been modified in several ways. In particular, they have been modified to work "in memory", i.e., taking the lex and yacc specifications as strings and returning the generated lexer and parser as string. They also have been modified to report errors using the error reporting provided by Isabelle/PIDE.

Authors

License

This project is licensed under a 3-clause BSD-style license.

SPDX-License-Identifier: BSD-3-Clause

Upstream Repository

The upstream git repository, i.e., the single source of truth, for this project is hosted by the Software Assurance & Security Research Team at https://git.logicalhacking.com/adbrucker/isabelle_lex-yacc/.