PHP 8.2.31
Preview: debugflags.rb Size: 1.40 KB
//proc/thread-self/root/opt/alt/ruby27/share/ruby/racc/debugflags.rb

#
# $Id: 74ff4369ce53c7f45cfc2644ce907785104ebf6e $
#
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of LGPL, see the file "COPYING".
#

module Racc

  class DebugFlags
    def DebugFlags.parse_option_string(s)
      parse = rule = token = state = la = prec = conf = false
      s.split(//).each do |ch|
        case ch
        when 'p' then parse = true
        when 'r' then rule = true
        when 't' then token = true
        when 's' then state = true
        when 'l' then la = true
        when 'c' then prec = true
        when 'o' then conf = true
        else
          raise "unknown debug flag char: #{ch.inspect}"
        end
      end
      new(parse, rule, token, state, la, prec, conf)
    end

    def initialize(parse = false, rule = false, token = false, state = false,
                   la = false, prec = false, conf = false)
      @parse = parse
      @rule = rule
      @token = token
      @state = state
      @la = la
      @prec = prec
      @any = (parse || rule || token || state || la || prec)
      @status_logging = conf
    end

    attr_reader :parse
    attr_reader :rule
    attr_reader :token
    attr_reader :state
    attr_reader :la
    attr_reader :prec

    def any?
      @any
    end

    attr_reader :status_logging
  end

end

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
655 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
1.40 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
310 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
22.13 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
14.91 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
336 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
1.35 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
5.16 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
18.41 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
18.34 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
11.66 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
361 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
648 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
19.84 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
8.02 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
137 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).