Class: Wptemplates::Parser

Inherits:
Object
  • Object
show all
Includes:
Regexes, Utils
Defined in:
lib/wptemplates/parser.rb

Instance Method Summary collapse

Methods included from Utils

fixpoint, normalize_link, normalize_linklabel, symbolize

Methods included from Regexes

a_doubleclosingbrace, a_doubleopenbrace, a_link, a_pipe, after_hash, first_comma, from_pipe_till_equals_no_doubleclosebrace_or_pipe, has_parens, parens, till_doublebrace_doubleopenbrackets_or_pipe, till_doubleclosebrace_or_pipe, till_doubleopenbrace_or_doubleopenbrackets, until_hash

Instance Method Details

#parse(text) ⇒ Object



11
12
13
14
# File 'lib/wptemplates/parser.rb', line 11

def parse(text)
  @input = StringScanner.new(text)
  parse_main
end