HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulelanguage-c-0.9.3Haskell2010

Language.C.Analysis

Analysis of the AST.

Currently, we provide a monad for analysis and analyze declarations and types. Especially note that there is no direct support for analyzing function bodies and constant expressions.

NOTE This is an experimental interface, and therefore the API will change in the future.

DONE:

  • Name analysis framework

  • File-scope analysis

  • Declaration analysis

TODO:

  • Type checking expressions

  • Constant expression evaluation (CEE)

  • Typed representation of attributes (depends on CEE)

  • Normalized representation of initializers

  • Support for analyzing function bodies (depends on CEE)

  • Normalizing expressions and statements

  • Formal rules how to link back to the AST using NodeInfo fields

  • Typed assembler representation

    • Packagelanguage-c-0.9.3
    • Exports0
    • LanguageHaskell2010
    • LicenceBSD-3-Clause
    • SourceAnalysis.hs

    Semantic representation

    0 declarations

    Error datatypes for the analysis

    0 declarations

    Traversal monad

    0 declarations

    Top level analysis

    0 declarations

    Analyzing declarations

    0 declarations

    Debug print

    0 declarations