class Rley::Lexical::Literal

A literal (value) is a token that represents a data value in the parsed language. For instance, in Ruby data values such as strings, numbers, regular expression,… can appear directly in the source code. These are examples of literal values. One responsibility of a tokenizer/lexer is to convert the text representation into a corresponding value in a convenient format for the interpreter/compiler.