I would be interested in seeing what atom can do (not really heard of it
before now tbh).. From my experience with the intellij lexer/grammar, the
easy part (relatively) is lexing and parsing.. the trickier part is
recognising indented blocks.  Would be interested in seeing how your
grammar works.

The intellij-idea plugin linked above is somewhat functional with some
syntax highlighting (it's easy to do in intellij, but one shouldn't overdo
it).  The eclipse one has foundered; I think I spent too much time trying
to get building to work automatically.. the intellij version gives up on
that and relies on makefiles doing the right thing.

The IDE approach can be very powerful when compared to a text editor; being
able to see docs for symbols without having to switch contexts is great, as
well as searching for functions by name.  Internally, the IDE has a full
view of the abstract syntax for any file; this can be used for all sorts of
things - basic semantic checks, some refactorings, documentation, basic
type extraction.  Downside is that it can feel slower.  Some of that is
inevitable due to having to reparse files more completely, of course.

As an aside, writing intellij extensions feels quite rewarding; one notices
a feature in some other extension, and twisting it into a form for spad or
aldor often turns out easier than expected.

To switch subjects slightly, I would like it to use some of the work that
has gone into the  fricas.github.io docs, as the plugin shows raw text in
docs at the moment.  There is a fair amount to investigate here, if anyone
is interested.

Peter



On 30 March 2017 at 17:28, Martin Baker <[email protected]> wrote:

> On 30/03/17 16:48, Bill Page wrote:
>
>> I have been playing with defining a language package for atom to
>> provide syntax highlighting and other edit functions for spad.  I have
>> a few simple things working. Is anyone else interested in using atom
>> this way? Does anyone have more experience with doing this sort of
>> thing in atom? I think it could eventually provide a good modern
>> alternative to emacs mode.
>>
>
> I am curious, what are the pros and cons of using a hackable editor to do
> this rather than an IDE as Peter Broadbery is doing:
>
> https://github.com/pbroadbery/aldor-eclipse
> https://github.com/pbroadbery/aldor-idea-plugin
>
> I am guessing that an editor is easier to start with but an IDE would
> ultimately be more powerful, is this guess correct?
>
> Martin B
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "aldor-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to