Sha256: cc21471ce05291aae92ee878de633680fb695a737530436ada24b1d7b2446815

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/opener/constituent_parsers/nl'

# STDIN.tty? returns `false` if data is being piped into the current process.
if STDIN.tty?
  input = nil
else
  input = STDIN.read
end

kernel = Opener::ConstituentParsers::NL.new(:args => ARGV)

puts kernel.run(input)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opener-constituent-parser-nl-1.1.1 bin/constituent-parser-nl
opener-constituent-parser-nl-1.1.0 bin/constituent-parser-nl
opener-constituent-parser-nl-1.0.0 bin/constituent-parser-nl