Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/cpphs/tests/text

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Here is some ordinary text with embedded Haskell-ish constructs,
that should however /not/ be interpreted as Haskell if the --text
option is given to cpphs.  For instance, here is a Haskell comment
including a cpp definition: {-
#  define FOO bar
and now we end the comment: -}   and try out the definition:  FOO
Likewise, double and single quotes no longer delimit strings or chars: "
#  define BAZ FOO
and what do we have here?: "  ' BAZ  '

#  define expand(a,b,c)	  Some text including a, the b, and c.
Also, in text-mode, macros should be expanded inside Haskell comments:
    -- expand(this,other,that)
and strings "expand(this,other,that)".

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.