[Mumps2Py:] [147] replaced all occurrences of parseMumps with parse_routine, |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 147
Author: pgallot
Date: 2008-02-29 19:37:05 +0000 (Fri, 29 Feb 2008)
Log Message:
-----------
replaced all occurrences of parseMumps with parse_routine,
misc. code tweaking.
Modified Paths:
--------------
trunk/mumps2py_ui.pyw
Modified: trunk/mumps2py_ui.pyw
===================================================================
--- trunk/mumps2py_ui.pyw 2008-02-29 19:35:05 UTC (rev 146)
+++ trunk/mumps2py_ui.pyw 2008-02-29 19:37:05 UTC (rev 147)
@@ -239,7 +239,7 @@
entryrefs = {}
print the_module.mod_name
if the_module.tokenlist_isempty():
- mumps2py.parseMumps(the_module, input_file)
+ mumps2py.parse_routine(the_module, input_file)
for token in the_module.tokenized():
token.extract_subtokens(entryrefs, (ENTRYREF, ))
@@ -272,7 +272,7 @@
if the_module.end < start_line:
continue
try:
- mumps2py.parseMumps(the_module)
+ mumps2py.parse_routine(the_module)
except mumps2py.ParseError, err:
self.message(err.error_msg(),
"Parse Error in " + the_module.mod_name)
@@ -287,7 +287,7 @@
self.current_module = the_module
self.__display_before(the_module)
try:
- mumps2py.parseMumps(the_module)
+ mumps2py.parse_routine(the_module)
translation = mumps2py.translate(the_module)
self.__display_after(translation)
except mumps2py.ParseError, err:
@@ -300,14 +300,14 @@
if self.modules and len(self.modules) > 1:
for the_module in self.modules:
try:
- mumps2py.parseMumps(the_module)
+ mumps2py.parse_routine(the_module)
except mumps2py.ParseError, err:
self.message(err.error_msg(),
"Parse Error in " + the_module.mod_name)
elif len(self.modules) == 1:
the_module = self.current_module
try:
- mumps2py.parseMumps(the_module)
+ mumps2py.parse_routine(the_module)
except mumps2py.ParseError, err:
self.message(err.error_msg(), "Parse Error")
self.display_decomposed(the_module)
@@ -328,7 +328,7 @@
try:
for modcnt, the_module in enumerate(self.modules):
try:
- mumps2py.parseMumps(the_module, input_file)
+ mumps2py.parse_routine(the_module, input_file)
except mumps2py.ParseError, err:
error_list.append((the_module.mod_name, err.error_msg()))
@@ -380,7 +380,7 @@
for modcnt, the_module in enumerate(modules_list):
if modcnt % 20 == 0: # cut down on console feedback
print the_module.mod_name
- mumps2py.parseMumps(the_module, input_file)
+ mumps2py.parse_routine(the_module, input_file)
for token in the_module.tokenized():
token.count_subtokens(toks)
the_module.empty_tokenlist() # keep memory usage down
@@ -608,30 +608,26 @@
self.make_dialog_menus(menu_bar)
before_frame = Frame(self.root, borderwidth = 2)
- self.before_window = Text( before_frame, \
- font = ("Consolas", 10), \
- width = 60, \
- wrap=NONE)
+ self.before_window = Text(before_frame, width = 60, \
+ font = ("Consolas", 10), wrap=NONE)
bvscroll = Scrollbar(before_frame, command = self.before_window.yview)
bhscroll = Scrollbar(before_frame, command = self.before_window.xview, \
orient = HORIZONTAL)
self.before_window.configure(yscrollcommand = bvscroll.set, \
- xscrollcommand = bhscroll.set)
+ xscrollcommand = bhscroll.set)
bvscroll.pack(side = RIGHT, fill = Y)
bhscroll.pack(side = BOTTOM, fill = X)
self.before_window.pack(side = LEFT, expand = YES)
before_frame.pack(anchor = NW, side = LEFT, expand = YES)
after_frame = Frame(self.root, borderwidth = 2)
- self.after_window = Text(after_frame, \
- width = 60, \
- font = ("Consolas", 10), \
- wrap = NONE)
+ self.after_window = Text(after_frame, width = 60, \
+ font = ("Consolas", 10), wrap = NONE)
avscroll = Scrollbar(after_frame, command = self.after_window.yview)
ahscroll = Scrollbar(after_frame, command = self.after_window.xview, \
orient = HORIZONTAL)
self.after_window.configure(yscrollcommand = avscroll.set, \
- xscrollcommand = ahscroll.set)
+ xscrollcommand = ahscroll.set)
avscroll.pack(side = RIGHT, fill = Y)
ahscroll.pack(side = BOTTOM, fill = X)
self.after_window.pack(side = LEFT, expand = YES)