parent
1bef0247dc
commit
d7870303a8
7
IDEAS
7
IDEAS
|
@ -1,8 +1,6 @@
|
||||||
2009/04/06:
|
2009/04/06:
|
||||||
|
|
||||||
Fix all the Interact subclasses to use "resuse" when applicable. Also give
|
Think about what to do with IPerl/IPython.
|
||||||
them modes subclassing mode.pipe for syntax highlighting etc. Think about what
|
|
||||||
to do with IPerl/IPython.
|
|
||||||
|
|
||||||
2009/04/04:
|
2009/04/04:
|
||||||
|
|
||||||
|
@ -10,6 +8,9 @@ Rename tokens so that they follow the "c.identifier" "c.delimiter" etc.
|
||||||
convention. This will help nested grammars work properly, and will also allow
|
convention. This will help nested grammars work properly, and will also allow
|
||||||
default coloring (with overrides) to work correctly.
|
default coloring (with overrides) to work correctly.
|
||||||
|
|
||||||
|
Once tokens are namespaced by mode, try to reduce the number of "leaf names"
|
||||||
|
(e.g. identifier, keyword, builtin, etc)
|
||||||
|
|
||||||
Think about replacing the 'context' module with something tied into the lexing
|
Think about replacing the 'context' module with something tied into the lexing
|
||||||
strategy. If not, then try to at least generalize it more.
|
strategy. If not, then try to at least generalize it more.
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ class ErlangTabber(tab.StackTabber):
|
||||||
## this shit doesn't work... hmmm
|
## this shit doesn't work... hmmm
|
||||||
#class ErlStart(Interact):
|
#class ErlStart(Interact):
|
||||||
# args = []
|
# args = []
|
||||||
|
# reuse = True
|
||||||
# def _execute(self, w, **vargs):
|
# def _execute(self, w, **vargs):
|
||||||
# Interact._execute(self, w, bname='*Erl*', cmd='erl')
|
# Interact._execute(self, w, bname='*Erl*', cmd='erl')
|
||||||
|
|
||||||
|
|
|
@ -58,11 +58,13 @@ class ForthGrammar(Grammar):
|
||||||
class GforthStart(Interact):
|
class GforthStart(Interact):
|
||||||
args = []
|
args = []
|
||||||
modename = 'forthpipe'
|
modename = 'forthpipe'
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
||||||
class GforthLoadFile(Interact):
|
class GforthLoadFile(Interact):
|
||||||
args = []
|
args = []
|
||||||
modename = 'forthpipe'
|
modename = 'forthpipe'
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
||||||
b = w.application.get_buffer_by_name('*GForth*')
|
b = w.application.get_buffer_by_name('*GForth*')
|
||||||
|
|
|
@ -42,10 +42,12 @@ class HaskellGrammar(Grammar):
|
||||||
|
|
||||||
class HugsStart(Interact):
|
class HugsStart(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
||||||
class HugsLoadFile(Interact):
|
class HugsLoadFile(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
||||||
b = w.application.get_buffer_by_name('*Hugs*')
|
b = w.application.get_buffer_by_name('*Hugs*')
|
||||||
|
|
|
@ -89,12 +89,14 @@ class JavascriptTabber2(tab.StackTabber2):
|
||||||
|
|
||||||
class RhinoStart(Interact):
|
class RhinoStart(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
cmd = w.application.config.get('rhino.cmd', 'rhino')
|
cmd = w.application.config.get('rhino.cmd', 'rhino')
|
||||||
Interact._execute(self, w, bname='*Rhino*', cmd=cmd)
|
Interact._execute(self, w, bname='*Rhino*', cmd=cmd)
|
||||||
|
|
||||||
class RhinoLoadFile(RhinoStart):
|
class RhinoLoadFile(RhinoStart):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
RhinoStart._execute(self, w, **vargs)
|
RhinoStart._execute(self, w, **vargs)
|
||||||
b = w.application.get_buffer_by_name('*Rhino*')
|
b = w.application.get_buffer_by_name('*Rhino*')
|
||||||
|
|
|
@ -41,10 +41,12 @@ class LispTabber(StackTabber):
|
||||||
|
|
||||||
class ClispStart(Interact):
|
class ClispStart(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
||||||
class ClispLoadFile(Interact):
|
class ClispLoadFile(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
||||||
b = w.application.get_buffer_by_name('*Clisp*')
|
b = w.application.get_buffer_by_name('*Clisp*')
|
||||||
|
|
|
@ -40,11 +40,13 @@ class SchemeCheckSyntax(Method):
|
||||||
|
|
||||||
class GuileStart(Interact):
|
class GuileStart(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
||||||
|
|
||||||
class GuileLoadFile(Interact):
|
class GuileLoadFile(Interact):
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
||||||
b = w.application.get_buffer_by_name('*Guile*')
|
b = w.application.get_buffer_by_name('*Guile*')
|
||||||
|
|
|
@ -120,10 +120,13 @@ class ShellGotoEnd(ShellBaseMethod):
|
||||||
class OpenShellRaw(method.shell.Interact):
|
class OpenShellRaw(method.shell.Interact):
|
||||||
'''Evaluate sh expressions'''
|
'''Evaluate sh expressions'''
|
||||||
args = []
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
method.shell.Interact._execute(self, w, bname='*Shell*', cmd='bash')
|
method.shell.Interact._execute(self, w, bname='*Shell*', cmd='bash')
|
||||||
class OpenShell(OpenShellRaw):
|
class OpenShell(OpenShellRaw):
|
||||||
'''Evaluate sh expressions'''
|
'''Evaluate sh expressions'''
|
||||||
|
args = []
|
||||||
|
reuse = True
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
OpenShellRaw._execute(self, w)
|
OpenShellRaw._execute(self, w)
|
||||||
f = lambda x: None
|
f = lambda x: None
|
||||||
|
|
Loading…
Reference in New Issue