!636 !standard functions !multi-line strings main { psvm { String cmd = "expand #655"; String[] words = cmd.split(" +"); System.out.println(words[0]); System.out.println(words[1]); String sentence = "You want to " + quote(words[0]) + " " + quote(words[1]) + "."; System.out.println(sentence); Engine engine = new Engine(); engine.rules.add(new Rule( [[You want to "expand" A.]], [[You should run "#todo" with argument A.]])); } static class Form { String pattern; List elements = new ArrayList(); } static Form parseForm(String s) { return new Form(); // TODO } static class Rule { Form ante, post; Rule(String ante, String post) { this.ante = parseForm(ante); this.post = parseForm(post); } } static class Engine { List rules = new ArrayList(); } }