lib/antelope/ace/grammar/precedences.rb in antelope-0.1.2 vs lib/antelope/ace/grammar/precedences.rb in antelope-0.1.3
- old
+ new
@@ -27,12 +27,18 @@
def precedence_for(token)
token = token.name if token.is_a?(Token)
set = Set.new([token, :_])
- precedence.
+ prec = precedence.
select { |pr| set.intersection(pr.tokens).any? }.
first
+
+ if token == :modifier
+ p prec
+ end
+
+ prec
end
private
# Generates the precedence rules. Loops through the compiler