Tidied up examples for Octave and Matlab

This commit is contained in:
Ian Bell
2015-04-03 22:44:27 -06:00
parent e92f538a1e
commit a446c8624a

View File

@@ -423,7 +423,7 @@ class Octave(BaseParser):
def dict2string(self, d):
if d['type'] == 'comment':
l = '# ' + d['comment']
l = '% ' + d['comment']
elif d['type'] == 'function':
l = self.map_function(d['function']) + '(' + ', '.join(self.parse_arguments(d['arguments'])) + ')'
elif d['type'] == 'print':
@@ -490,7 +490,7 @@ class MATLAB(BaseParser):
def dict2string(self, d):
if d['type'] == 'comment':
l = '# ' + d['comment']
l = '% ' + d['comment']
elif d['type'] == 'function':
l = self.map_function(d['function']) + '(' + ', '.join(self.parse_arguments(d['arguments'])) + ')'
elif d['type'] == 'print':