[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview StringAttribute.java, 1.18, 1.1
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-11-26 10:51:10
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11060/src/net/sourceforge/bprocessor/gui/attrview Modified Files: StringAttribute.java Log Message: extrude uses prism class Index: StringAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/StringAttribute.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** StringAttribute.java 20 Oct 2007 17:22:49 -0000 1.18 --- StringAttribute.java 26 Nov 2007 10:51:04 -0000 1.19 *************** *** 271,275 **** Environment global = new Environment(globals, null); Environment env = new Environment(global, new HashMap(), new LinkedList()); ! input = new StringReader("echo (" + editor.getText() + ")"); lexer = new ScriptLexer(input); parser = new ScriptParser(lexer); --- 271,275 ---- Environment global = new Environment(globals, null); Environment env = new Environment(global, new HashMap(), new LinkedList()); ! input = new StringReader("echo " + editor.getText()); lexer = new ScriptLexer(input); parser = new ScriptParser(lexer); *************** *** 278,286 **** Stack stack = new Stack(); function.evaluate(env, stack); Object o = stack.pop(); if (o instanceof Double) { attribute.setValue(o); } else { ! attribute.setValue(0); } } catch (Exception error) { --- 278,287 ---- Stack stack = new Stack(); function.evaluate(env, stack); + System.out.println("stack contains " + stack.size() + " elements"); Object o = stack.pop(); if (o instanceof Double) { attribute.setValue(o); } else { ! attribute.setValue(o); } } catch (Exception error) { |