class Liquid::Parser

Defined in:

liquid/parser.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(str : String) #

[View source]

Class Method Detail

def self.parse(str : String) #

[View source]
def self.parse(file : File) #

[View source]

Instance Method Detail

def add_raw #

Create and add a Raw node with current buffer


[View source]
def consume_char #

Add current char to buffer


[View source]
def consume_expression #

[View source]
def consume_statement #

Consume a statement


[View source]
def has_char? #

[View source]
def parse #

parse string


[View source]
def root : Root #

[View source]