From 1c7a613ea282bc202499ac696fb346583667ab26 Mon Sep 17 00:00:00 2001 From: Little_Rubyist Date: Fri, 13 Oct 2023 01:00:58 +0900 Subject: [PATCH] add lexer/token/type.rbs --- Steepfile | 1 + sig/lrama/lexer/token/type.rbs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 sig/lrama/lexer/token/type.rbs diff --git a/Steepfile b/Steepfile index dcbee96e..970f953b 100644 --- a/Steepfile +++ b/Steepfile @@ -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 diff --git a/sig/lrama/lexer/token/type.rbs b/sig/lrama/lexer/token/type.rbs new file mode 100644 index 00000000..14a17f75 --- /dev/null +++ b/sig/lrama/lexer/token/type.rbs @@ -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