Skip to content

Commit

Permalink
wip: parse method simplification in parser ast types
Browse files Browse the repository at this point in the history
  • Loading branch information
urumo committed Jan 22, 2024
1 parent 87af53e commit cd017f6
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions lib/ruby_type_system/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,8 @@
module RubyTypeSystem
module AstTypes
PROGRAM = :program
CLASS = :class
MODULE = :module
METHOD = :method
ARGUMENT = :argument
KEYWORD_ARGUMENT = :keyword_argument
BLOCK = :block
CONSTANT = :constant
LOCAL_VARIABLE = :local_variable
INSTANCE_VARIABLE = :instance_variable
CLASS_VARIABLE = :class_variable
GLOBAL_VARIABLE = :global_variable
ARRAY = :array
HASH = :hash
SET = :set
RANGE = :range
REGEXP = :regexp
STRING = :string
INTEGER = :integer
FLOAT = :float
SYMBOL = :symbol
BOOLEAN = :boolean
NIL = :nil
SELF = :self
TRUE = true
FALSE = false
EXPRESSION = :expression
STATEMENT = :statement
end

class ParserError < StandardError; end
Expand Down

0 comments on commit cd017f6

Please sign in to comment.