From 6aae7d069771a18e31dceacb1996b10eddc693de Mon Sep 17 00:00:00 2001 From: qrczak Date: Fri, 23 Mar 2001 09:33:22 +0000 Subject: [PATCH] [project @ 2001-03-23 09:33:22 by qrczak] hsc2hs lexical rules clarified. --- ghc/docs/users_guide/utils.sgml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ghc/docs/users_guide/utils.sgml b/ghc/docs/users_guide/utils.sgml index d130c71..e9839af 100644 --- a/ghc/docs/users_guide/utils.sgml +++ b/ghc/docs/users_guide/utils.sgml @@ -229,26 +229,28 @@ tags: Input syntax - All special processing is triggered by the - # character placed outside Haskell comments - and string literals. To output a literal #, - write it twice: ##. - - Otherwise # is followed by optional - spaces and tabs, an alphanumeric key that describes the - kind of processing, and its arguments. Arguments look - like C expressions separated by commas and extend up to the - nearest unmatched ), ], - or }, or to the end of line outside any - () [] {} '' "" /* */. Any character may be - preceded by a backslash and will not be treated specially. + All special processing is triggered by + the # operator. To output + a literal #, write it twice: + ##. Inside string literals and comments + # characters are not processed. + + A # is followed by optional + spaces and tabs, an alphanumeric keyword that describes + the kind of processing, and its arguments. Arguments look + like C expressions separated by commas (they are not + written inside parens). They extend up to the nearest + unmatched ), ] or + }, or to the end of line if it occurs outside + any () [] {} '' "" /**/ and is not preceded + by a backslash. Backslash-newline pairs are stripped. In addition #{stuff} is equivalent to #stuff except that it's self-delimited and thus needs not to be placed at the end of line or in some brackets. - Meanings of specific keys: + Meanings of specific keywords: -- 1.7.10.4