Sha256: ab964860187705804387e6b602c4854cea76a56a891cbc0808ef182c342b2d17

Contents?: true

Size: 136 Bytes

Versions: 7

Compression:

Stored size: 136 Bytes

Contents

ab_star = regular("(a b)*")

# The difference of a regular language with itself is empty
empty = (ab_star - ab_star)
assert empty.empty?

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stamina-gui-0.6.1 examples/2-regular-languages/3-difference.rb
stamina-gui-0.6.0 examples/2-regular-languages/3-difference.rb
stamina-gui-0.5.4 examples/2-regular-languages/3-difference.rb
stamina-gui-0.5.3 examples/2-regular-languages/3-difference.rb
stamina-gui-0.5.2 examples/2-regular-languages/3-difference.rb
stamina-gui-0.5.1 examples/2-regular-languages/3-difference.rb
stamina-gui-0.5.0 examples/2-regular-languages/3-difference.rb