Sha256: 0977fc9c662b6cdae6bdb41ba9ec392406fb1395d911d90b43d6ced7cca2e9e0
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
# -*- encoding : utf-8 -*- module Lines module Error # Used to mark non-lines errors as being part of the library. This lets # a library user `rescue Lines::Error => ex` and catch all exceptions # comming from the lines library. def self.tag(obj) obj.extend Error end end class ParseError < StandardError; include Error; end #class LogicError < RuntimeError; include Error; end LIT_TRUE = '#t' LIT_FALSE = '#f' LIT_NIL = 'nil' SPACE = ' ' EQUAL = '=' OPEN_BRACE = '{' SHUT_BRACE = '}' OPEN_BRACKET = '[' SHUT_BRACKET = ']' SINGLE_QUOTE = "'" DOUBLE_QUOTE = '"' DOT_DOT_DOT = '...' BACKSLASH = '\\' ESCAPED_SINGLE_QUOTE = "\\'" ESCAPED_DOUBLE_QUOTE = '\"' NUM_MATCH = /-?(?:0|[1-9])\d*(?:\.\d+)?(?:[eE][+-]\d+)?/ ISO8601_ZULU_CAPTURE = /^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/ NUM_CAPTURE = /^(#{NUM_MATCH})$/ end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lines-0.9.1 | lib/lines/common.rb |