module Parser
@api public
Constants
- CurrentRuby
- MESSAGES
Diagnostic
messages (errors, warnings and notices) that can be generated.@see
Diagnostic
@api public
- VERSION
Private Class Methods
warn_syntax_deviation(feature, version)
click to toggle source
# File lib/parser/current.rb, line 5 def warn_syntax_deviation(feature, version) warn "warning: parser/current is loading #{feature}, which recognizes" \ "#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \ "Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri." end