class

Liquid::Parser

Inherits Reference < Object

Constants

ENDRAW_STATEMENT = {"raw" => /(?<!\\){%\s*endraw\s*\-?%}|$/, "comment" => /(?<!\\){%\s*endcomment\s*\-?%}|$/}
STATEMENT = /^\s*(?<keyword>[a-z]+).*$/

Constructors

new(str : String)
Source

Class methods

parse(str : String)
Source
parse(file : File)
Source

Instance methods

add_raw

Create and add a Raw node with current buffer

Source
consume_char

Add current char to buffer

Source
consume_expression
Source
consume_statement

Consume a statement

Source
has_char?
Source
parse

parse string

Source
root
Source