Paste number 70155: Using Open Dylan's split

Paste number 70155: Using Open Dylan's split
Pasted by: |Agent
When:3 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+1I4R
Channel:#dylan
Paste contents:
Raw Source | XML | Display As
--- testapp2.lid ---

library: testapp2
executable: testapp2
files: testapp2-exports
  testapp2


--- testapp2-exports.lid ---

module: dylan-user

define library testapp2
  use common-dylan;
  use io;
  use regular-expressions;
end library;

define module testapp2
  use common-dylan;
  use format-out;
  use regular-expressions;
end module;


--- testapp2.dylan ---

module: testapp2
synopsis: 
author: 
copyright: 

define function main(name, arguments)
  let s = "Hello, world!";
  let r = compile-regex(",");
  let p = split(s, r);
  format-out("%=\n", p);
  exit-application(0);
end function main;

// Invoke our main() function.
main(application-name(), application-arguments());


--- Command-line ---

minimal-console-compiler -build testapp2.lid


This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.