Class Ast.LiteralPat

  • Enclosing class:
    Ast

    public static class Ast.LiteralPat
    extends Ast.Pat
    Literal pattern, the pattern analog of the Ast.Literal expression.

    For example, "0" in "fun fact 0 = 1 | fact n = n * fact (n - 1)".

    • Field Detail

      • value

        public final java.lang.Comparable value
    • Constructor Detail

      • LiteralPat

        LiteralPat​(Pos pos,
                   Op op,
                   java.lang.Comparable value)