Module: Dhall::Parser

Defined in:
lib/dhall/parser.rb

Defined Under Namespace

Modules: AbsolutePath, AnnotatedExpression, ApplicationExpression, Authority, Builtin, CompleteExpression, DoubleQuoteChunk, DoubleQuoteEscaped, DoubleQuoteLiteral, EmptyRecordLiteral, EmptyRecordType, EmptyUnionType, EndOfLine, Env, EscapedInterpolation, EscapedQuotePair, Expression, FirstApplicationExpression, Hash, HerePath, HomePath, Http, Import, ImportHashed, IntegerLiteral, Interpolation, Label, LetBinding, MinusInfinityLiteral, Missing, Nan, NaturalLiteral, NonEmptyListLiteral, NonEmptyRecordLiteral, NonEmptyRecordType, NonEmptyRecordTypeOrLiteral, NonEmptyUnionType, NonreservedLabel, NumericDoubleLiteral, ParentPath, Path, PathComponent, PlusInfinityLiteral, PosixEnvironmentVariable, PosixEnvironmentVariableCharacter, PrimitiveExpression, RecordLiteralEntry, Scheme, Selector, SelectorExpression, SingleQuoteContinue, SingleQuoteLiteral, UnionTypeEntry, UrlPath, Variable

Constant Summary collapse

OPERATORS =
{
  import_alt_expression:    :ImportFallback,
  or_expression:            :Or,
  plus_expression:          :Plus,
  text_append_expression:   :TextConcatenate,
  list_append_expression:   :ListConcatenate,
  and_expression:           :And,
  combine_expression:       :RecursiveRecordMerge,
  prefer_expression:        :RightBiasedRecordMerge,
  combine_types_expression: :RecursiveRecordTypeMerge,
  times_expression:         :Times,
  equal_expression:         :Equal,
  not_equal_expression:     :NotEqual,
  equivalent_expression:    :Equivalent
}.freeze
RecordTypeEntry =
RecordLiteralEntry

Class Method Summary collapse

Class Method Details

.parse(*args) ⇒ Object



8
9
10
# File 'lib/dhall/parser.rb', line 8

def self.parse(*args)
  CitrusParser.parse(*args)
end

.parse_file(*args) ⇒ Object



12
13
14
# File 'lib/dhall/parser.rb', line 12

def self.parse_file(*args)
  CitrusParser.parse_file(*args)
end