[TxMt] Re: Mathematica
Jacob Rus
jrus at hcs.harvard.edu
Mon Dec 4 15:22:25 UTC 2006
rafale labosk wrote:
> Some of my work involves Mathematica. I have this
> ambitious notion that TM with TerminalMate
> (eventually) can be used to interface with the M'ca
> computational engine.
>
> What's missing is a tmbundle to start. I'm assuming
> getting to the point of just highlighting syntax is
> doable.
Hmm, I had thought there was a bundle already, but apparently not. I
would expect it to take you an afternoon or two to make up a basic
grammar. Try to do the best you can, but don't worry excessively...
someone will be sure to report any issues, or even fix things
themselves. Also, don't worry if not everything is scoped right off the
bat. If you only handle 50% of the language to start, that's okay, as
long as something makes it into svn.
> Can someone point me in the right direction wrt an
> existing bundle that has similar syntax so that I can
> independently figure this out?(MatLab, btw, is largely
> imperative.)
If you know of any languages with similar syntax, you can go look at
them, but frankly, if you have some experience with regular expressions,
I imagine you can do a lot of it by just looking at the manual and
taking tiny glances at other grammars.
I do suggest taking a look at the R bundle, which has a lot of what
you're looking to make in the command department (I think... I haven't
actually ever looked at it myself).
> Is this a waste of time I wonder?
No, it isn't. Though personally, I'd be much more interested in seeing
a Maple bundle, I imagine there are many who would be happy to see a
Mathematica bundle.
> It seems that people have had sporadic success with TM
> in the functional space. Someone feel free to correct
> me.
What do you mean?
> Also, does anyone have suggestions about navigating
> between multiline functions in C++? The syntax
> highlighting/function hopping does not work in those
> cases.
It's a limitation of the current parser, that will likely be better in
TextMate 2.0. In the mean time, you can reformat your stuff if it's
really a problem.
More information about the textmate
mailing list