lout-users
[Top][All Lists]
Advanced

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

Re: prg2lout's erratic behaviour for character literals


From: Gabor Greif
Subject: Re: prg2lout's erratic behaviour for character literals
Date: Tue, 26 Jun 2007 23:51:42 +0200


Am 26.06.2007 um 19:08 schrieb Gabor Greif:

Hi lout-users,

I observed strange things when formatting character constants
(literals) like 'F' in Haskell.

Looking into the prg2lout sources I see:


TOKEN CCharacterToken = {
  U "character", /* used by error messages involving this token      */
  PRINT_WHOLE_QUOTED, /* print this token in quotes etc. as usual         */
  U "@PC", /* Lout command for formatting characters           */


TOKEN EiffelCharacterToken = {
  U "character", /* used by error messages involving this token      */
  PRINT_WHOLE_QUOTED, /* print this token in quotes etc. as usual         */
  U "@PC", /* Lout command for formatting characters           */


TOKEN HaskellCharacterToken = {
  U "character", /* used by error messages involving this token      */
  PRINT_WHOLE_QUOTED, /* print this token in quotes etc. as usual         */
  U "@PC", /* Lout command for formatting characters           */




changing 
U "@PC", /* Lout command for formatting characters           */

to

U "@PS", /* Lout command for formatting characters           */

seems to give good results.




It appears that in haskellf this definition is wrong:


def @PC # for formatting comments
    right x
{
@PCnoDelim { "{"@Symb address@hidden minus"}" }
}




--should possibly be->


def @PC # for formatting comments
    right x
{
@PCnoDelim { "{"address@hidden address@hidden minus}"}" }
}




this also worked

Cheers,

Gabor


reply via email to

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