Happy Logo
latest

Contents

  • Introduction
  • Obtaining Happy
  • Using Happy
  • Generalized LR Parsing
  • Attribute Grammars
  • Invoking Happy
  • Syntax of Grammar Files
  • Info Files
  • Tips
  • Contributing to Happy
Happy
  • Welcome to Happy’s documentation!
  • Edit on GitHub

Welcome to Happy’s documentation!

Contents

  • Introduction
    • Compatibility
    • Reporting Bugs
    • License
    • Acknowledgements
  • Obtaining Happy
    • Haskell-specific way
    • Operating System way
  • Using Happy
    • Returning other datatypes
    • Parsing sequences
    • Using Precedences
    • Type Signatures
    • Monadic Parsers
    • The Error Token
    • Generating Multiple Parsers From a Single Grammar
  • Generalized LR Parsing
    • Introduction
    • Basic use of a Happy-generated GLR parser
    • Including semantic results
  • Attribute Grammars
    • Introduction
    • Attribute Grammars in Happy
    • Limits of Happy Attribute Grammars
    • Example Attribute Grammars
  • Invoking Happy
  • Syntax of Grammar Files
    • Lexical Rules
    • Module Header
    • Directives
    • Grammar
    • Module Trailer
  • Info Files
    • States
    • Interpreting conflicts
  • Tips
    • Performance Tips
    • Compilation-Time Tips
    • Finding Type Errors
    • Conflict Tips
    • Using Happy with GHCi
    • Basic monadic Happy use with Alex
  • Contributing to Happy
    • Source Code Repository
    • Repo Layout
    • Build Instructions

Indices and tables

  • Index

  • Search Page

Next

© Copyright 2022, Simon Marlow and the Happy developers. Revision 4bb6e59b.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds