class Lua::Literal::Parser

www.lua.org/manual/5.3/manual.html

Public Instance Methods

parse(lua_literal) click to toggle source

Parses the given argument as a Lua literal expression

See {file:README.md} for supported syntax. @param [String, Parslet::Source] lua_literal Lua literal expression @return [Hash, Array, Parslet::Slice] PORO (Plain old Ruby object) result tree @see {::Parslet::Parser#parse}

Calls superclass method
# File lib/lua/literal/parser.rb, line 196
def parse(lua_literal)
  super(lua_literal)
rescue Parslet::ParseFailed
  raise Lua::Literal::ParseError
end