1
0
forked from GitHub/gf-core
Commit Graph

9 Commits

Author SHA1 Message Date
bjorn
a39f8cc5da Temporary fix for the grave accent a encoding problem: change compatPrint to id.
The problem is that lower case a with a grave accent is coded in UTF-8 as \195\160. 
Unicode character \160 is non-breaking space, so Haskell's words function
will break a UTF-8 encoded string at this character.
String literals in the .gfo file are UTF-8 encoded in generateModuleCode,
just before the call to prGrammar (which uses compactPrint, which used words).
The real solution would be to pretty-print the grammar to Unicode, and then
encode as UTF-8. The problem with that is Latin-1 identifers. They are now
kept in Latin-1 in the .gfo file, since Alex can't handle Unicode.
The real solution to that would be to fix Alex to handle Unicode, but 
that is non-trivial. GHC interally uses a very hacky .x file to be
able to lex UTF-8 source files. 

An alternative solution that doesn't address the weirdness of using two different
encodings in the same .gfo as we do now, is to incorporate compactPrint
into the grammar printer, to avoid having to do any postprocessing.
2008-09-15 12:38:37 +00:00
aarne
c5c6d13546 changed names of resource-1.3; added a note on homepage on release 2008-06-25 16:54:35 +00:00
aarne
7d721eb16e removed src for 2.9 2008-06-25 16:43:48 +00:00
aarne
71d3221e12 option -mac to vt command (uses open with ps) 2008-03-06 21:27:14 +00:00
aarne
091f9f0c1b refresh compilation phase in the new format 2007-12-07 10:23:18 +00:00
aarne
cac4f5e27c encoding of lincats as gfcc terms with param value information 2007-11-07 17:27:09 +00:00
aarne
2b5b099813 cleaned up new GFCC, but added RP as deprecated 2007-10-05 09:02:47 +00:00
aarne
6ac6a31274 fixed reading argvars from gfc in gf-to-gfcc 2007-09-21 12:00:31 +00:00
aarne
121c247d15 compact printing of gf files 2007-09-20 21:51:54 +00:00