Solid.Literal (solid v1.0.0-rc.0)

View Source

Summary

Types

t()

@type t() :: %Solid.Literal{loc: Solid.Parser.Loc.t(), value: value()}

value()

@type value() ::
  boolean() | nil | binary() | integer() | float() | %Solid.Literal.Empty{}

Functions

parse(tokens)

@spec parse(Solid.Lexer.tokens()) ::
  {:ok, t(), Solid.Lexer.tokens()} | {:error, binary(), Solid.Lexer.loc()}