module RubyTokenParser::Expressions

#

RubyTokenParser::Expressions

@private

All the expressions used to parse the literals will be bundled here.

#

Constants

DoubleQuotedStringEscapes
#

DoubleQuotedStringEscapes

Map escape sequences in double quoted strings.

This will be a really huge Hash.

#
RArrayBegin
#

Match to the start of an Array

#
RArrayEnd
#

Match to the end of an Array

#
RArraySeparator
#

Match the separator of Array elements

This depends on RArrayVoid having been defined before.

A separator in an Array is something such as:

[1,2,3]
#
RArrayVoid
#

Match whitespace between elements in an Array

#
RBigDecimal
#

Match a decimal number (Float or BigDecimal)

#
RBinaryInteger
#

Match an Integer in binary notation

#
RConstant
#

Match constant names (with nesting)

#
RDString
#

Match a double quoted string.

#
RDate
#

Match a date

#
RDateTime
#

Match a datetime (must come after RTime was defined)

#
RFalse
#

Match false

#
RFloat
#

Match a decimal number in scientific notation

#
RHashArrow
#

Match the separator between a key and a value in a hash

#
RHashBegin
#

Match to the start of a Hash

#
RHashEnd
#

Match end of a Hash

#
RHashKeySymbol
#

Match a symbol used as key in a Hash

#
RHashSeparator
#

Match the separator of hash key/value pairs

#
RHashVoid
#

Match whitespace between elements in a Hash

#
RHexInteger
#

Match an Integer in hexadecimal notation

#
RInteger
#

Match an Integer in decimal notation

#
RNil
#

Match to nil

#
ROctalInteger
#

Match an Integer in octal notation

#
RRange
#

Match a Regex such as (1..5)

#
RRegexp
#

Match a regular expression

#
RSString
#

Match a single quoted string.

#
RSymbol
#

Match a symbol (symbol tag)

Note that this depends on RSString and RDString, so these must come before that.

#
RTime
#

Match a time (without date)

#
RTimeZone
#

Match a timezone

#
RTrue
#

Match true

#