Top Level Namespace

Defined Under Namespace

Modules: CSVPlusPlus

Constant Summary collapse

BUILTIN_FUNCTIONS =
{
  # =CELLREF(C) === =INDIRECT(CONCAT($$C, $$rownum))
  cellref: ::CSVPlusPlus::Language::Entities::Function.new(
    :cellref,
    [:cell],
    ::CSVPlusPlus::Language::Entities::FunctionCall.new(
      :indirect,
      [
        ::CSVPlusPlus::Language::Entities::FunctionCall.new(
          :concat,
          [
            ::CSVPlusPlus::Language::Entities::Variable.new(:cell),
            ::CSVPlusPlus::Language::Entities::Variable.new(:rownum)
          ]
        )
      ]
    )
  )
}.freeze
ENTITIES =
::CSVPlusPlus::Language::Entities
RUNTIME_VARIABLES =
{
  rownum: ::ENTITIES::RuntimeValue.new(->(r) { ::ENTITIES::Number.new(r.row_index + 1) }),
  cellnum: ::ENTITIES::RuntimeValue.new(->(r) { ::ENTITIES::Number.new(r.cell_index + 1) })
}.freeze
AUTH_SCOPES =
['https://www.googleapis.com/auth/spreadsheets'].freeze
FULL_RANGE =
'A1:Z1000'