#!/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)