plurimath 0.2.5 → 0.2.6

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: 8815a416877ce1bf419cb3ef8a53c33d632301bab0f44c207d0a749ab9520d41
4
- data.tar.gz: cd5791b5628324b4ba4a3fd7e7bd2e11f472395ae322923ede64a724177010cc
3
+ metadata.gz: '04338f1ee3f1e78d5383c40bb04b3d3b48c11d04180eefaa0eafeb7ae2980efc'
4
+ data.tar.gz: 912bd2f8fa6d6bcfddc287214f06d537bb7084c7bd82945a7b57e981fc0943ab
5
5
  SHA512:
6
- metadata.gz: 2098b3a7724f79b848a2252ca1337186f0845684b903cfbd4edbafeed3b04790082dedcfdd8054ab2106044067602fd12f5cbbe66a44d3cc90eac45bb2adc03f
7
- data.tar.gz: cfd50426d4e71486d1434b684d517f3643c44a46b726427b6511e70fdb2408c46fff64e5b1a33dff139b9c4b0c292b0f8b762ff802a693ca06d93e3a9c004fc6
6
+ metadata.gz: 4bbf747cf01f27e17fa1ea5b4138f59b5978f0cfcb493caaf3cb96885d2d36b42aa2bd6893ce1da8c302daaa80334c1b35a2283e7b6a3296d82b17b577700364
7
+ data.tar.gz: 01d79594d56773f04dee88a5830f5ae39087d034975566dffb6db4b64e853c517ed596f8951b5b64b391f5df96e7607b026e114a05fabbee19929f2a4d7dd69c
@@ -3561,7 +3561,7 @@ module Plurimath
3561
3561
  cosh: :unary,
3562
3562
  ddot: :unary,
3563
3563
  mbox: :unary,
3564
- text: :unary,
3564
+ text: :text,
3565
3565
  '"': :symbols,
3566
3566
  sum: :power_base,
3567
3567
  inf: :power_base,
@@ -197,6 +197,8 @@ module Plurimath
197
197
  (slashed_value(first_value, :underover))
198
198
  when :binary
199
199
  (slashed_value(first_value, :binary) >> intermediate_exp.as(:first_value) >> intermediate_exp.as(:second_value)).as(:binary)
200
+ when :text
201
+ (slashed_value(first_value, :text) >> (str("{") >> (match("[^\}]").repeat).as(:first_value) >> str("}")))
200
202
  end
201
203
  end
202
204
 
@@ -357,6 +357,11 @@ module Plurimath
357
357
  )
358
358
  end
359
359
 
360
+ rule(text: simple(:text),
361
+ first_value: simple(:first_value)) do
362
+ Math::Function::Text.new(first_value)
363
+ end
364
+
360
365
  rule(unary: simple(:unary),
361
366
  first_value: simple(:first_value)) do
362
367
  Utility.get_class(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.2.5"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plurimath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet