lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prg2lout distinguishing character tokens from tick attributes


From: Jeff Kingston
Subject: Re: prg2lout distinguishing character tokens from tick attributes
Date: Wed, 21 Mar 2001 10:15:44 +1100

> How to I teach prg2lout that the first ' is a tick attribute and
> the next two ' surround a character?

It's not easy to do it cleanly; I wonder how the Ada lexical analysers
handle it?  Anyway my suggestion is to make ' be one of the characters
that is allowed in an identifier after the first character:

    <identifier> ::= [a-zA-Z][a-zA-Z0-9_']*

and hope that people don't get into a habit of putting spaces before
their tick attributes.  Of course, this will mean that you have to
set the tick in the same font as the rest of the identifier.

Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]