Skip to content

Commit

Permalink
add lexer/token/type.rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Little-Rubyist committed Oct 12, 2023
1 parent 26c8b37 commit 1c7a613
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ target :lib do
check "lib/lrama/digraph.rb"
check "lib/lrama/report/duration.rb"
check "lib/lrama/report/profile.rb"
check "lib/lrama/token/type.rb"
check "lib/lrama/warning.rb"
end
15 changes: 15 additions & 0 deletions sig/lrama/lexer/token/type.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module Lrama
class Lexer
class Token
attr_accessor type: Type
attr_accessor s_value: String
attr_accessor alias: String
attr_accessor keyword_init: bool
class Type
attr_accessor id: Integer
attr_accessor name: String
attr_accessor keyword_init: bool
end
end
end
end

0 comments on commit 1c7a613

Please sign in to comment.