expressir 2.4.23 → 2.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b017c6f0192b50004e75435290e108e8f9ba5292364dd6e79a1700b105d5250c
4
- data.tar.gz: 6aeb6eb0bef71db56f10e54294442a9af2bf1dc64d54b439855cf1c245b61e5d
3
+ metadata.gz: baecd11fc9e03ed51685a06825e68a232f3caae95fd26bbffa8f77ce48ffdc03
4
+ data.tar.gz: 04b02ab33defbc571c9a1d36284c53f04b847acecb7e54b67537983ebbf2a74e
5
5
  SHA512:
6
- metadata.gz: a978df09647cdc6c2803622f8117c7b3a7a3ee78d2a65b03f12156661427b8cd7fa0e760bbbb15cc44889017a683df9d66202e49be38e86b42f84dee6cda39ba
7
- data.tar.gz: a821f8ea9c281465d3e95414182a60e3296b8e7f48c8417cec9e8026ff32e206e67215b9515c444c417a70b8da8391d756f04b585380cc5762a99fd360b09255
6
+ metadata.gz: 98ea8c39e0f462b7c6ecb7a2d24281cf3d159a79544b0b98feb89721011a066ff391343b0285816576f0007f9ede00d684629734fb5d29fefe2ef8af1f3c516f
7
+ data.tar.gz: c1bc94e1b7a73a79d93c7a1ae67b3f945f12ae7e3bcdcd161a6ea9f1d736ef74b0c2e39289301b31c558090c5f5fa7708b10d503c92b691ca5f1f90ff9ba0728
@@ -13,7 +13,7 @@ magnus = { version = "0.9" }
13
13
  # Pinned core release (M1, TODO.parity-ee/19): the ext never floats
14
14
  # main — bump the tag per expressir release, alongside the validation
15
15
  # run that pins it.
16
- expressir-rs = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.4" }
16
+ expressir-rs = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.6" }
17
17
  serde_json = "1.0"
18
18
 
19
19
  # Standalone workspace: the repo root workspace owns crates/, the ext
@@ -632,11 +632,11 @@ module Expressir
632
632
  format(node.applies_to),
633
633
  ";",
634
634
  ].join,
635
+ # ISO 10303-11: abstract_supertype_constraint = ABSTRACT ';' —
636
+ # the ABSTRACT SUPERTYPE form is entity-header syntax.
635
637
  *if node.abstract
636
638
  indent([
637
639
  "ABSTRACT",
638
- " ",
639
- "SUPERTYPE",
640
640
  ";",
641
641
  ].join)
642
642
  end,
@@ -146,8 +146,15 @@ module Expressir
146
146
  rule(:abstractSupertypeDeclaration) do
147
147
  (tABSTRACT >> tSUPERTYPE >> subtypeConstraint.maybe).as(:abstractSupertypeDeclaration)
148
148
  end
149
+ # ISO 10303-11 abstract_supertype_constraint = ABSTRACT ';' —
150
+ # tolerated nonstandard variant: ABSTRACT SUPERTYPE ';' (real
151
+ # corpora ship it; longest-first so PEG stays deterministic).
152
+ # The entity-header forms live in abstractSupertypeDeclaration.
149
153
  rule(:abstractSupertype) do
150
- (tABSTRACT >> tSUPERTYPE >> op_delim).as(:abstractSupertype)
154
+ (
155
+ (tABSTRACT >> tSUPERTYPE >> op_delim) |
156
+ (tABSTRACT >> op_delim)
157
+ ).as(:abstractSupertype)
151
158
  end
152
159
  rule(:actualParameterList) do
153
160
  (op_leftparen >> (parameter >> (op_comma >> parameter).repeat).as(:listOf_parameter).maybe >> op_rightparen)
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.4.23".freeze
6
+ VERSION = "2.4.24".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.23
4
+ version: 2.4.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.