From 4056a888e184f1d4cada48b79370c52fc0e313b1 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 14 Jan 2015 19:11:37 +0100 Subject: fixes to prototype --- prototype/weaver.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prototype/weaver.rb') 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 -- cgit v1.2.3