require 'jievro/parser/tools/tokens'

def source
  'for 3;;{}'
end

def expected_tokens
  [
    T_FOR,
    T_WHITESPACES(' '),
    T_LITERAL_INTEGER_DECIMAL('3'),
    T_SEMICOLON,
    T_SEMICOLON,
    T_OPEN_CURLY_BRACKET,
    T_CLOSE_CURLY_BRACKET
  ]
end

def expected_ast
  {
    __type: 'program',
    body: [
      {
        __type: 'for-statement',
        init: [
          {
            __type: 'literal-integer',
            value: 3
          }
        ],
        body: []
      }
    ]
  }
end

load 'spec_builder.rb'
