plurimath 0.2.4 → 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: 7f803c950538b870ea7493acaa13d112a0fe7f68edeb277e7bb9b0b2c6e54e96
4
- data.tar.gz: ec1131060265a3f03ed8f7b685a28e77d0ccc59998a3fe93c8ab64e6a6ca23f9
3
+ metadata.gz: '04338f1ee3f1e78d5383c40bb04b3d3b48c11d04180eefaa0eafeb7ae2980efc'
4
+ data.tar.gz: 912bd2f8fa6d6bcfddc287214f06d537bb7084c7bd82945a7b57e981fc0943ab
5
5
  SHA512:
6
- metadata.gz: 17696e31768ad9e0cb7d05832bd4b203c0665bab3208593f7b4be509f5e372dd7528b939c7d0ebf1c63f6957c62c113eacc00e3a9026173ec9c6f266d123f2da
7
- data.tar.gz: 68d908d657769b9b3e240fdaefdc68cf1a196ecc6fbe961bd274a6c2404f3a6927f17e3ea3efc226d3ddf6f594f7d1b389b88f48119e16b146344de2ef487583
6
+ metadata.gz: 4bbf747cf01f27e17fa1ea5b4138f59b5978f0cfcb493caaf3cb96885d2d36b42aa2bd6893ce1da8c302daaa80334c1b35a2283e7b6a3296d82b17b577700364
7
+ data.tar.gz: 01d79594d56773f04dee88a5830f5ae39087d034975566dffb6db4b64e853c517ed596f8951b5b64b391f5df96e7607b026e114a05fabbee19929f2a4d7dd69c
@@ -58,7 +58,8 @@ module Plurimath
58
58
  end
59
59
 
60
60
  rule(:quoted_text) do
61
- str('"') >> match("[^\"]").repeat.as(:text) >> str('"')
61
+ str('"') >> match("[^\"]").repeat.as(:text) >> str('"') |
62
+ str('"') >> str("").as(:text)
62
63
  end
63
64
 
64
65
  rule(:symbol_text_or_integer) do
@@ -3561,6 +3561,7 @@ module Plurimath
3561
3561
  cosh: :unary,
3562
3562
  ddot: :unary,
3563
3563
  mbox: :unary,
3564
+ text: :text,
3564
3565
  '"': :symbols,
3565
3566
  sum: :power_base,
3566
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.4"
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.4
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-03-29 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