• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
              • Abstract-syntax-trees
              • Abstract-syntax-irrelevants
              • Type-specifier-lists
              • Ascii-identifiers
              • Abstraction-mapping
              • Standard
              • Storage-specifier-lists
              • Code-ensembles
              • Purity
              • Make-self-code-ensemble
            • Concrete-syntax
            • Disambiguation
            • Validation
            • Gcc-builtins
            • Preprocessing
            • Parsing
          • Atc
          • Transformation-tools
          • Language
          • Representation
          • Insertion-sort
          • Pack
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Syntax-for-tools

Abstract-syntax

An abstract syntax of C for use by tools.

See syntax-for-tools for background.

We define abstract syntax trees (ASTs), and operations on them.

We have also started defining a syntax abstraction mapping from the concrete syntax to this abstract syntax. This is work in progress.

We define code ensembles as consisting of top-level ASTs and implementation environments, which are the entities manipulated by some of our tools.

We also provide make-self functions (via fty::defmake-self) for code ensembles and contained ASTs.

Subtopics

Abstract-syntax-trees
Abstract syntax trees (ASTs).
Abstract-syntax-irrelevants
Irrelevant values of the abstract syntax fixtypes.
Type-specifier-lists
Characterization of valid lists of type specifiers.
Ascii-identifiers
ASCII identifiers in the C abstract syntax of tools.
Abstraction-mapping
Syntax abstraction mapping.
Standard
Standard syntax (i.e. without GCC extensions).
Storage-specifier-lists
Characterization of valid lists of storage specifiers.
Code-ensembles
Code ensembles.
Purity
Pure (i.e. side-effect-free) constructs.
Make-self-code-ensemble
Make-self functions for code ensembles and all the AST types.