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.27 demo.rb
expressir-0.2.27-x86_64-linux demo.rb
expressir-0.2.27-x86_64-darwin demo.rb
expressir-0.2.27-x86-mingw32 demo.rb
expressir-0.2.27-x86-linux demo.rb
expressir-0.2.27-x64-mingw32 demo.rb
expressir-0.2.27-arm64-darwin demo.rb
expressir-0.2.26 demo.rb
expressir-0.2.26-x86_64-linux demo.rb
expressir-0.2.26-x86_64-darwin demo.rb
expressir-0.2.26-x86-mingw32 demo.rb
expressir-0.2.26-x86-linux demo.rb
expressir-0.2.26-x64-mingw32 demo.rb
expressir-0.2.26-arm64-darwin demo.rb
expressir-0.2.25 demo.rb
expressir-0.2.25-x86_64-linux demo.rb
expressir-0.2.25-x86_64-darwin demo.rb
expressir-0.2.25-x86-mingw32 demo.rb
expressir-0.2.25-x86-linux demo.rb
expressir-0.2.25-x64-mingw32 demo.rb