Google Groups Home Help | Sign in
Eclipse plugin for Cat, bugfix
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Adrian Savage  
View profile
 More options Aug 22 2007, 10:45 pm
From: Adrian Savage <nothingonte...@googlemail.com>
Date: Thu, 23 Aug 2007 02:45:01 -0000
Local: Wed, Aug 22 2007 10:45 pm
Subject: Eclipse plugin for Cat, bugfix
Hello to the Cat language group!

I am creating a plugin for Eclipse.
Once I downloaded the right package, it was easier than I thought.
I want to ask the group whether you think I should write my first full-
blown PEG parser, or just a simple scanner?
I want the plugin to go beyond syntax highlighting and onto
refactoring etc.

Also, I have a bug fix.

Before the fix:
 evens evens == (returns true, as if it checked all even numbers)
 odds ones == (returns true)
 evens ones == (gives a stack exception after a while)
After:
 evens evens == (waits forever while it checks them)
 odds ones == (returns false)
 evens ones == (returns false)

The fix is for Cat 0.17.0, I dedicate it to the public domain and its
here:
http://nothingontelly.com/goodgrief/CatFunctionalList.cs

The function PairwiseForEach has a missing ! and when this is fixed,
it runs out of stack space when comparing possibly-infinite equal
lists.
When tail recursion optimisation is added, it would give up on unequal
sized possibly-infinite lists.
This leads to some changes which perhaps don't have the beauty of the
original code.
While making this change I discovered that you can create a function
in C# without giving it a name, and have it access a local variable
(like Java's inner classes but more elegant). This is done in an
instance of the PairAccessor delegate.

Regards,

Adrian Savage


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Aug 22 2007, 11:12 pm
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Wed, 22 Aug 2007 23:12:14 -0400
Local: Wed, Aug 22 2007 11:12 pm
Subject: Re: Eclipse plugin for Cat, bugfix
On 8/22/07, Adrian Savage <nothingonte...@googlemail.com> wrote:

> Hello to the Cat language group!

Welcome Adrian!

> I am creating a plugin for Eclipse.

Yay!

> Once I downloaded the right package, it was easier than I thought.
> I want to ask the group whether you think I should write my first full-
> blown PEG parser, or just a simple scanner?

I'd suggest starting with a simple scanner. It'll probably take much
less time, and allow you to get on to more interesting tasks. However,
I believe there is already an open-source PEG library in Java

Thank you.

Thank you very much for your contributions and bug reports.

- Christopher


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Savage  
View profile
 More options Aug 30 2007, 4:33 pm
From: Adrian Savage <nothingonte...@googlemail.com>
Date: Thu, 30 Aug 2007 13:33:33 -0700
Local: Thurs, Aug 30 2007 4:33 pm
Subject: Re: Eclipse plugin for Cat, bugfix
A simple version of the Cat editor plugin is now available.
To use it, download this file and put it into the plugins subfolder of
Eclipse.

http://nothingontelly.com/CatPlugin/com.nothingontelly.plugins.Cat_1....

Comments are welcome; they will help me to improve it.

Regards,

Adrian Savage


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Aug 31 2007, 1:21 am
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Fri, 31 Aug 2007 01:21:52 -0400
Local: Fri, Aug 31 2007 1:21 am
Subject: Re: Eclipse plugin for Cat, bugfix
Thank you very much for this contribution Adrian! I will be leaving
tommorrow morning and will take a close look at it when I get back on
Monday.

- Christopher

On 8/30/07, Adrian Savage <nothingonte...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Savage  
View profile
 More options Aug 31 2007, 2:36 pm
From: "Adrian Savage" <nothingonte...@googlemail.com>
Date: Fri, 31 Aug 2007 19:36:13 +0100
Local: Fri, Aug 31 2007 2:36 pm
Subject: Re: Eclipse plugin for Cat, bugfix

Thanks. I released a new version because 1.0.0 didn't work well with Eclipse
3.2.2. The Cat plugin now has a web page. Version 1.0.1 includes source code
(.jar files are .zip files with a different extension.) It is available
from:

http://nothingontelly.com/CatPlugin

<http://nothingontelly.com/CatPlugin/com.nothingontelly.plugins.Cat_1....>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Sep 1 2007, 11:23 am
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Sat, 1 Sep 2007 11:23:25 -0400
Local: Sat, Sep 1 2007 11:23 am
Subject: Re: Eclipse plugin for Cat, bugfix
Hi Adrian,

I just tried using the Cat plugin, and when I constructed a ".cat"
file from scratch, I could see the neat Cat icon on the project
explorer pane (nice touch!). However, no syntax coloring was present
(and it red squiggle highlighted various words?). The next problem
occured when I tried to open a file:

  Error opening the editor.
  Bad version number in .class file

Any ideas what I could do to resolve the problem? I have no idea where
to start, and I don't know which ".class" file is being referred to.

- Christopher

On 8/31/07, Adrian Savage <nothingonte...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Savage  
View profile
 More options Sep 1 2007, 4:35 pm
From: "Adrian Savage" <nothingonte...@googlemail.com>
Date: Sat, 1 Sep 2007 21:35:34 +0100
Local: Sat, Sep 1 2007 4:35 pm
Subject: Re: Eclipse plugin for Cat, bugfix

Which version of Eclipse did you use?
Which operating system?

On 9/1/07, Christopher Diggins <cdigg...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Sep 1 2007, 7:47 pm
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Sat, 1 Sep 2007 19:47:03 -0400
Local: Sat, Sep 1 2007 7:47 pm
Subject: Re: Eclipse plugin for Cat, bugfix
Eclipse 3.3, Windows XP. I have downloaded and unzipped the version
1.0.1 of the plugin into my plugins folder.

- Christopher

On 9/1/07, Adrian Savage <nothingonte...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Savage  
View profile
 More options Sep 2 2007, 9:49 am
From: "Adrian Savage" <nothingonte...@googlemail.com>
Date: Sun, 2 Sep 2007 14:49:07 +0100
Local: Sun, Sep 2 2007 9:49 am
Subject: Re: Eclipse plugin for Cat, bugfix

For some reason, Windows Explorer seems to rename the .jar file to .zip.
(I didn't notice this the first time I tested it because I used Download
Manager instead.)
Instead of unzipping it, try renaming it back to .jar.
Just drop the .jar file into the plugins folder as it is.

Does that work?

On 9/2/07, Christopher Diggins <cdigg...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Sep 2 2007, 11:46 pm
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Sun, 2 Sep 2007 23:46:20 -0400
Local: Sun, Sep 2 2007 11:46 pm
Subject: Re: Eclipse plugin for Cat, bugfix
Unfortunately no. I am downloading Eclipse 3.2 to see if that works.

On 9/2/07, Adrian Savage <nothingonte...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Savage  
View profile
 More options Sep 3 2007, 3:11 am
From: "Adrian Savage" <nothingonte...@googlemail.com>
Date: Mon, 3 Sep 2007 08:11:20 +0100
Local: Mon, Sep 3 2007 3:11 am
Subject: Re: Eclipse plugin for Cat, bugfix

It's strange. Perhaps you need to delete the files created when the .jar was
unzipped.
"eclipse -clean" resets the plugin settings.
I have now tried it on Windows Vista and Eclipse 3.3. It worked fine but I
had to fight IE and change the filename back to .jar. I would expect it to
work on Eclipse 3.2 onward.
Which Java runtime are you using? Does a fresh install of 3.3 work?
If it still doesn't work then I don't know what else to suggest because I am
an Eclipse newbie. Sorry!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Diggins  
View profile
 More options Sep 3 2007, 10:29 am
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Mon, 3 Sep 2007 10:29:41 -0400
Local: Mon, Sep 3 2007 10:29 am
Subject: Re: Eclipse plugin for Cat, bugfix
Tried with 3.2.

Got the following error: "Unable to create this part due to an
internal error. Reason for the failure: The editor class could not be
instantiated. This usually indicates that the editor's class name was
mistyped in plugin.xml."

My runtime is Java 2 Runtime Environment, SE v 1.4.2_03.

I doubt reinstalling 3.3 will work (I've already downloaded and
installed three different versions of eclipse)

Cheers,
Christopher

On 9/3/07, Adrian Savage <nothingonte...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.