MarpaX-ESLIF
view release on metacpan or search on metacpan
lib/MarpaX/ESLIF/BNF.pod view on Meta::CPAN
["tracef"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'TRACE', ...)) end,
["debugf"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'DEBUG', ...)) end,
["infof"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'INFO', ...)) end,
["noticef"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'NOTICE', ...)) end,
["warningf"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'WARN', ...)) end,
["errorf"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'ERROR', ...)) end,
["criticalf"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'CRITICAL', ...)) end,
["emergencyf"] = function(self, fmts, ...) print(string.format("%-9s "..fmts, 'EMERGENCY', ...)) end
}
local marpaESLIFLua = require 'marpaESLIFLua'
local marpaESLIFp = marpaESLIFLua.MarpaX::ESLIF::new(logger)
marpaESLIFGrammarp = marpaESLIFp:marpaESLIFGrammar_new([[
:default ::= action => ::shift
top ::= . => parameterizedRhs->(1)
| . => parameterizedRhs->(2)
| . => parameterizedRhs->(3)
| . => parameterizedRhs->(4)
| . => ::luac->function(x)
return "'will not match'"
( run in 0.410 second using v1.01-cache-2.11-cpan-05444aca049 )