Class: Sass::Script::Parser
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(str, line, offset, filename = nil) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
- #parse_interpolated ⇒ Object
Constructor Details
Class Method Details
.parse(*args) ⇒ Object
23 24 25 |
# File 'lib/sass/script/parser.rb', line 23 def self.parse(*args) new(*args).parse end |
Instance Method Details
#parse ⇒ Object
17 18 19 20 21 |
# File 'lib/sass/script/parser.rb', line 17 def parse expr = assert_expr :expr raise Sass::SyntaxError.new("Unexpected #{@lexer.peek.type} token.") unless @lexer.done? expr end |
#parse_interpolated ⇒ Object
11 12 13 14 15 |
# File 'lib/sass/script/parser.rb', line 11 def parse_interpolated expr = assert_expr :expr assert_tok :right_bracket expr end |