View Source Grammar.CodeGen.Clause (Grammar v0.3.0)

Stores a clause definition.

Clauses are used to produce code, so parameters def and blk must be quoted expressions.

Summary

Functions

Create a new clause with a given name, definition, block and epsilon flag.

Types

@type t() :: %Grammar.CodeGen.Clause{
  blk: any(),
  def: [atom() | binary() | struct()],
  epsilon: boolean(),
  name: atom()
}

Functions

Link to this function

new(name, def, blk, epsilon)

View Source

Create a new clause with a given name, definition, block and epsilon flag.