rubasteme 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0120d6a93a7c0816f2e083eeeae756500f895943dbc370783953e09efbdfd23a
4
- data.tar.gz: 99032f65d8b50dff21317a9b78bc023577dbea6876253b80839c773ec5b6a1d6
3
+ metadata.gz: ae403f48775a21a957a932a5a4ca6c8ba57a2a599e67a7dc1b3073c90979fda0
4
+ data.tar.gz: 7f8b072b65a9011b3ba0bc010b58608d5c21bff9996279494f8e562ef4e6aa2d
5
5
  SHA512:
6
- metadata.gz: 4ba1b55f37947af114a0b66445fba7fb805cb60c748a89ad8b98484591311c64ba53e21932ea967c08a080c2589f025daa5f8643ba183fa973d43996cbc32a5c
7
- data.tar.gz: edfe293769d3d1cdad0a7524ca27fdec4b8429062f699f970dddf8c979f34040ff33528fd66c722f5d467dd33d17e532adb6c9d86bf06587c88e2e7912d998f6
6
+ metadata.gz: d99c7be0fab343b682c27bf8eae4ae6b57c7378cc83b106471902ae0c7fc320f69183d9c81f03541c52984792b87c0a88d57ce6ba0cd3b65436505717b25ed8a
7
+ data.tar.gz: 70a04f9e03e44b7e4fb6c057fde7355acd27efc7b21522f408264791cf60786b22858e0d04d4a49a96af438dde4090be9d2fdf241ebdcd9fd421f3607aa8c51a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ## [Unreleased]
2
2
  - (nothing to record here)
3
3
 
4
+ ## [0.1.3] - 2021-05-20
5
+ ### Fixed
6
+ - Change a method name of AST::CondNode.
7
+ - `#cond_clause` -> `#cond_clauses`
8
+ - Modify the timing to pass lexer to parser in `exe/rubasteme`.
9
+ - Fix #1: `:ast_vector` is missing in AST::AST_NODE_TYPE.
10
+
4
11
  ## [0.1.2] - 2021-05-20
5
12
  ### Added
6
13
  - Add a singleton method, `version` to Parser class.
data/exe/rubasteme CHANGED
@@ -73,8 +73,8 @@ end
73
73
 
74
74
  tokens = lines.map{|e| Kernel.eval(e)}
75
75
  lexer = Rubasteme.lexer(tokens)
76
- parser = Rubasteme.parser(lexer)
77
- ast = parser.parse
76
+ parser = Rubasteme.parser
77
+ ast = parser.parse(lexer)
78
78
 
79
79
  output = ""
80
80
  PP.pp(ast.to_a, output)
data/lib/rubasteme/ast.rb CHANGED
@@ -20,6 +20,7 @@ module Rubasteme
20
20
  # branch
21
21
  :ast_program,
22
22
  :ast_list,
23
+ :ast_vector,
23
24
  :ast_quotation,
24
25
  :ast_procedure_call,
25
26
  :ast_lambda_expression,
@@ -227,7 +227,7 @@ module Rubasteme
227
227
  super(nil)
228
228
  end
229
229
 
230
- def cond_clause
230
+ def cond_clauses
231
231
  @nodes[0..-1]
232
232
  end
233
233
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubasteme
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  RELEASE = "2021-05-20"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubasteme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mnbi