require 'sass/script/lexer' module Sass module Script class Parser def initialize(str) @lexer = Lexer.new(str) end def parse assert_expr :expr end def self.parse(*args) new(*args).parse end private # Defines a simple left-associative production. # name is the name of the production, # sub is the name of the production beneath it, # and ops is a list of operators for this precedence level def self.production(name, sub, *ops) class_eval <