"""
import re, os, cmd, readline
-from utils import ip, lexer, subst, drepr, _repr, get_module, yellow
+from utils import ip, lexer, subst, drepr, _repr, get_module, yellow, \
+ green, bold
from stdlib import topython, todyna
from errors import DynaCompilerError
from config import dotdynadir
from errors import show_traceback
import load, post
-
from interpreter import Rule
from contextlib import contextmanager
@property
def prompt(self):
- return '> '
+ return bold % green % '> '
def do_rules(self, _):
"""
print e
print 'new rule(s) were not added to program.'
print
+ return ([], {})
else:
with self.error_tracker():
new_rules = self.interp.load_plan(src)
black, red, green, yellow, blue, magenta, cyan, white = \
map('\033[3%sm%%s\033[0m'.__mod__, range(8))
+bold = '\033[1m%s\033[0m'
_comments = re.compile('%.*$', re.MULTILINE)