Sha256: 1e5af655a04619ee214dc9de20fcf1a0c0cafa5687671d62b13078dbccdfa3f8
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# This is where parslets name comes from: Small parser atoms. # module Parslet::Atoms # The precedence module controls parenthesis during the #inspect printing # of parslets. It is not relevant to other aspects of the parsing. # module Precedence prec = 0 BASE = (prec+=1) # everything else LOOKAHEAD = (prec+=1) # &SOMETHING REPETITION = (prec+=1) # 'a'+, 'a'? SEQUENCE = (prec+=1) # 'a' 'b' ALTERNATE = (prec+=1) # 'a' | 'b' OUTER = (prec+=1) # printing is done here. end require 'parslet/atoms/can_flatten' require 'parslet/atoms/context' require 'parslet/atoms/dsl' require 'parslet/atoms/base' require 'parslet/atoms/ignored' require 'parslet/atoms/named' require 'parslet/atoms/lookahead' require 'parslet/atoms/alternative' require 'parslet/atoms/sequence' require 'parslet/atoms/repetition' require 'parslet/atoms/re' require 'parslet/atoms/str' require 'parslet/atoms/entity' require 'parslet/atoms/capture' require 'parslet/atoms/dynamic' require 'parslet/atoms/scope' require 'parslet/atoms/infix' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parslet-1.8.1 | lib/parslet/atoms.rb |
parslet-1.8.0 | lib/parslet/atoms.rb |