Skip to content

Instantly share code, notes, and snippets.

@waywardmonkeys
Created April 28, 2014 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waywardmonkeys/11359954 to your computer and use it in GitHub Desktop.
Save waywardmonkeys/11359954 to your computer and use it in GitHub Desktop.
Multiline text using a parser expansion
Module: foo
Synopsis:
Author:
Copyright: See LICENSE file in this distribution.
define function text-parser (text :: <string>) => (text :: <string>)
text
end;
define function main (name :: <string>, arguments :: <vector>)
format-out(#text:{Hello, world!
This is some multi-line text!
And it can include ", ', and many other things.
});
exit-application(0);
end function main;
main(application-name(), application-arguments());
batavia:foo bruce (master) $ ./_build/bin/foo
Hello, world!
This is some multi-line text!
And it can include ", ', and many other things.
batavia:foo bruce (master) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment