Sha256: f4c8bbbaebcf2e4e77fcd26b6e0483942e28912dd32b3380ada262fe16bb82a5

Contents?: true

Size: 647 Bytes

Versions: 133

Compression:

Stored size: 647 Bytes

Contents

#!/usr/bin/env ruby

require 'expressir'
require 'expressir/express_exp/parser'

# This file is from:
# https://github.com/metanorma/annotated-express/blob/master/data/resources/action_schema/action_schema.exp
file = 'action_schema.exp'

# repo = Expressir::ExpressExp::Parser.from_exp(file)
# schema = repo.schemas.find{|schema| schema.id == "support_resource_schema"}

repo = Expressir::ExpressExp::Parser.from_exp(file)
schema = repo.schemas.find{|schema| schema.id == "action_schema"}
entity = schema.entities.find{|entity| entity.id == "action_directive_relationship"}
where = entity.where.find{|where| where.id == "WR1"}

puts where.inspect

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
expressir-0.2.16-x86-linux demo.rb
expressir-0.2.16-x64-mingw32 demo.rb
expressir-0.2.16-arm64-darwin demo.rb
expressir-0.2.15 demo.rb
expressir-0.2.15-x86_64-linux demo.rb
expressir-0.2.15-x86_64-darwin demo.rb
expressir-0.2.15-x86-mingw32 demo.rb
expressir-0.2.15-x86-linux demo.rb
expressir-0.2.15-x64-mingw32 demo.rb
expressir-0.2.15-arm64-darwin demo.rb
expressir-0.2.14 demo.rb
expressir-0.2.14-x86_64-linux demo.rb
expressir-0.2.14-x86_64-darwin demo.rb
expressir-0.2.14-x86-mingw32 demo.rb
expressir-0.2.14-x86-linux demo.rb
expressir-0.2.14-x64-mingw32 demo.rb
expressir-0.2.14-arm64-darwin demo.rb
expressir-0.2.13 demo.rb
expressir-0.2.13-x86_64-linux demo.rb
expressir-0.2.13-x86_64-darwin demo.rb