vidarh / writing-a-compiler-in-ruby

Code from my series on writing a Ruby compiler in Ruby
http://www.hokstad.com/compiler
273 stars 22 forks source link

Parser fails to handle "require" followed by an expression instead of a string constant #1

Closed vidarh closed 15 years ago

vidarh commented 15 years ago

Example: require File.dirname(FILE) + '/../spec_helper'

Fails with: Error: Expected name of source to require