[Oberon] Syntax-directed program editing

Lars O noreply at z505.com
Sun Jan 17 23:00:07 CET 2016


Chris Burrows wrote:
>> -----Original Message-----
>> From: eas lab [mailto:lab.eas at gmail.com]
>> Sent: Sunday, 17 January 2016 4:58 PM
>> To: chris at cfbsoftware.com; ETH Oberon and related systems
>> Subject: Re: [Oberon] CapsLock
>>
>>
>> What about a syntax-directed editor/system, where you initially see:-
>> Module #ModID;  ConstDecls; ....
>> ProcDecls;
>> BEGIN
>> Stmts
>> END.
>>
>>
>
> I have occasionally tried the sorts of systems that use shortcut keys to
> insert code templates / snippets for different constructs e.g. using
> Visual Studio's 'IntelliSense > Insert Snippet' feature you can type
> CTRL-KXF<Enter> and you will get


This is similar to how some FreePascal programmers use CTRL-B and CTRL-E
to type out begin and end.

The problem with this is the annoying shift key strokes and strains
required to hit the ctrl key. Programmers have been hospitalized from
using keyboard driven editors like emacs... i.e. it's not a myth but an
actual recorded incident that people have literally been hospitalized from
shift key strains.

PROG MeaningOfLife;

  PRO SomeCode;
  B
    out('hello');
  E;

  FUN Interesting: int;
  B
    result := 42;
  E;

B
  SomeCode;
  out(' ...The answer to life is ', Interesting);
E.


More information about the Oberon mailing list