Class: Lua::Literal::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/lua/literal/parser.rb

Overview

Instance Method Summary collapse

Instance Method Details

#parse(lua_literal) ⇒ Hash, ...

Parses the given argument as a Lua literal expression

See README for supported syntax.

See Also:

  • Lua::Literal::Parser.{{::Parslet{::Parslet::Parser{::Parslet::Parser#parse}


196
197
198
199
200
# File 'lib/lua/literal/parser.rb', line 196

def parse(lua_literal)
  super(lua_literal)
rescue Parslet::ParseFailed
  raise Lua::Literal::ParseError
end