Module: Dhall::Parser

Defined in:
lib/dhall/parser.rb

Defined Under Namespace

Modules: AbsolutePath, AnnotatedExpression, ApplicationExpression, CompleteExpression, DoubleQuoteChunk, DoubleQuoteEscaped, DoubleQuoteLiteral, EmptyCollection, EmptyRecordLiteral, EmptyRecordType, EmptyUnionType, Env, EscapedInterpolation, EscapedQuotePair, Expression, Hash, HerePath, HomePath, Http, Identifier, Import, ImportHashed, IntegerLiteral, Interpolation, Label, Labels, LetBinding, MinusInfinityLiteral, Missing, Nan, NaturalLiteral, NonEmptyListLiteral, NonEmptyOptional, NonEmptyRecordLiteral, NonEmptyRecordType, NonEmptyRecordTypeOrLiteral, NonEmptyUnionTypeOrLiteral, NonreservedLabel, NumericDoubleLiteral, ParentPath, Path, PathComponent, PlusInfinityLiteral, PosixEnvironmentVariable, PosixEnvironmentVariableCharacter, PrimitiveExpression, RecordLiteralEntry, SelectorExpression, SingleQuoteContinue, SingleQuoteLiteral, UnionLiteralVariantValue, UnionTypeEntry, UnionTypeOrLiteralVariantType

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
}.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