module Dhall::Parser::DoubleQuoteEscaped

Constants

ESCAPES
NON_CHARACTERS

Public Instance Methods

value() click to toggle source
# File lib/dhall/parser.rb, line 310
def value
        ESCAPES.fetch(string) do
                code = string.sub(/\Au\{?([A-F0-9]+)\}?/, "\\1").to_i(16)
                NON_CHARACTERS.each do |range|
                        raise Citrus::ParseError, input if range.include?(code)
                end
                [code].pack("U*")
        end
end