summaryrefslogtreecommitdiff
path: root/src/GF/Infra/CompactPrint.hs
AgeCommit message (Collapse)Author
2009-12-13reorganize the directories under src, and rescue the JavaScript interpreter ↵krasimir
from deprecated
2008-09-15A somewhat better solution to the words/UTF-8 problem: do encoding last, but ↵bjorn
only on what appears to be string literals.
2008-09-15Temporary fix for the grave accent a encoding problem: change compatPrint to id.bjorn
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-06-25changed names of resource-1.3; added a note on homepage on releaseaarne
2008-06-25removed src for 2.9aarne
2008-03-06option -mac to vt command (uses open with ps)aarne
2007-12-07refresh compilation phase in the new formataarne
2007-11-07encoding of lincats as gfcc terms with param value informationaarne
2007-10-05cleaned up new GFCC, but added RP as deprecatedaarne
2007-09-21fixed reading argvars from gfc in gf-to-gfccaarne
2007-09-20compact printing of gf filesaarne