[plt-scheme] project

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Jul 21 16:05:24 EDT 2007

Since we are in such dire need, I went ahead and got us started. I've
just checked in some changes to profj to do tabify and to
automatically indent when hitting return.

The strategy is very simple: look backwards for '{'s. Count them.
Insert twice that number of spaces at the beginning of the line.
Unless the line's first character is '}', in which case, insert two
fewer spaces.

This simple strategy seems to work okay for the dumb little programs
I've tried, but do let me know if there's something obvious missing.

Jon: if you want to get involved to do more, try checking in with
Matthias sometime in person. He can probably direct you to someone in
the lab there that can help you get going hacking away on my start.
The interesting part of my changes are all in the `defs-text-mixin' in
plt/collects/profj/tool.ss (lines 104 to 159 currently).


On 7/21/07, Jon Simons <simonsj at ccs.neu.edu> wrote:
> > We are in dire need of an indentation mode in drscheme for non-
> > parenthetical languages: ProfessorJ, Algol60. As you can imagine, we
> > are also seriously short of manpower.
> >
> > Is there a volunteer who'd like to try his hands on such a project?
> > The appropriate people from the team will provide guidance. If
> > successful, the code will be integrated into the kernel of the system.
> >
> > Thanks -- Matthias
> I'd like to volunteer; I remember wanting auto-indent for ProfessorJ
> when I took CSU213.
> Jon Simons
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.