lh-l4v/tools/c-parser/standalone-parser
Rafal Kolanski 6095e9ecb2 cparser: annotate AST printing for top-level decls
In order to compare ASTs for appearance/disappearance/modification of
declarations, it is easier to have the annotations obvious to any
external tool for ease of parsing.

Annotations take the form:
"##<decl_type>: <name>", e.g. "##Function: ctzl"

Signed-off-by: Rafal Kolanski <rafal.kolanski@proofcraft.systems>
2022-05-10 16:40:42 +10:00
..
GetOpt.sig spdx: review missing copyright & license info 2020-03-16 14:19:15 +08:00
GetOpt.sml spdx: review missing copyright & license info 2020-03-16 14:19:15 +08:00
Makefile c-parser: provide AARCH64 setup 2022-02-03 16:13:45 +11:00
README.md license: provide documentation under CC-BY-SA-4.0 2020-03-16 14:19:15 +08:00
basics.sml c-parser: update to Isabelle2020 2020-10-27 15:52:31 +10:00
c-parser licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
c-parser.mlb Merge branch 'sort-munge-output' into multi_arch_refactor 2016-08-17 10:42:38 +10:00
library.ML spdx: review missing copyright & license info 2020-03-16 14:19:15 +08:00
main.sml cparser: annotate AST printing for top-level decls 2022-05-10 16:40:42 +10:00
mlton-cparser.sml licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
mlton-tokenizer.sml licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
poly-cparser.ML licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
poly-tokenizer.ML licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
tokenizer licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
tokenizer.mlb CParser multi_arch_refactor: fix tokenizer build 2016-09-01 12:35:33 +10:00
tokenizer.sml licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00

README.md

Standalone Isabelle/C Parser

This directory contains a standalone executable build of the Isabelle/C parser for lightweight testing whether a C program falls into the verification C subset.

Note that this is only the parser, not the Isabelle translation. Programs that pass the parse may still fail in translation.

Dependencies

This build works best with the mlton compiler, available from

http://mlton.org

PolyML has worked as well in the past, but may require some additional setup for 64bit platforms.