module Pione::Lang::CommonParser
CommonParser
provides a set of symbols, keywords, and utility parsers.
Constants
- KEYWORDS
keywords
- SYMBOLS
symbols
Public Instance Methods
_line(content)
click to toggle source
# File lib/pione/lang/common-parser.rb, line 201 def _line(content) space? >> content >> line_end end
line(content)
click to toggle source
Create an atom that matches a line with the content.
# File lib/pione/lang/common-parser.rb, line 198 def line(content) space? >> content >> line_end.as(:tail) end
padded?(atom)
click to toggle source
Enclose the atom by “pad?”.
# File lib/pione/lang/common-parser.rb, line 193 def padded?(atom) pad? >> atom >> pad? end
spaced?(atom)
click to toggle source
Enclose the atom by “space?”.
# File lib/pione/lang/common-parser.rb, line 188 def spaced?(atom) space? >> atom >> space? end