diff options
author | Patrick Simianer <p@simianer.de> | 2015-01-14 19:11:37 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-01-14 19:11:37 +0100 |
commit | 4056a888e184f1d4cada48b79370c52fc0e313b1 (patch) | |
tree | c77812f3aa267a73bde7560cba5afbad311ca99a /prototype/weaver.rb | |
parent | 16c0aaafae5847b0fc712fbd25a25b8f7ad61bad (diff) |
fixes to prototype
Diffstat (limited to 'prototype/weaver.rb')
-rwxr-xr-x | prototype/weaver.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototype/weaver.rb b/prototype/weaver.rb index 5afdb93..5cda844 100755 --- a/prototype/weaver.rb +++ b/prototype/weaver.rb @@ -9,11 +9,11 @@ def read_grammar fn, add_glue, add_pass_through, input=nil grammar = Grammar::Grammar.new fn if add_glue STDERR.write ">> adding glue rules\n" - grammar.add_glue + grammar.add_glue_rules end if add_pass_through STDERR.write ">> adding pass-through rules\n" - grammar.add_pass_through input + grammar.add_pass_through_rules input end return grammar end @@ -51,7 +51,7 @@ def main if sgm_input && x['grammar'] grammar = read_grammar x['grammar'], cfg[:add_glue], cfg[:add_pass_through], input elsif cfg[:add_pass_through] - grammar.add_pass_through input + grammar.add_pass_through_rules input end |