<div dir="ltr">I cannot reproduce the example in the user guide:<div><br></div><div><a href="http://swift-lang.org/guides/release-0.94/userguide/userguide.html#_structured_regular_expression_mapper">http://swift-lang.org/guides/release-0.94/userguide/userguide.html#_structured_regular_expression_mapper</a></div>

<div><br></div><div>Please see the script and console output below.<br></div><div><br></div><div><div>1. Is Swift currently being developed?</div><div>2. Are there plans to improve the documentation soon?</div><div>3. Is it possible to move the documentation to a platform where your users can contribute?</div>

<div>4. Is the project well-funded and staffed?</div></div><div><br></div><div>Thanks,</div><div>Kamil</div><div><br></div><div><br></div><div>Here is the script: (copied from the guide verbatim)</div><div><br></div><div>

- - -</div><div>$ cat test.swift</div><div><div>type file;                                             </div><div>string s[] = ["picture.gif", "hello.gif", "world.gif"];</div><div>file f[] <structured_regexp_mapper;                    </div>

<div>            source=s,                                  </div><div>            match="(.*)gif",                           </div><div>            transform="\\1jpg">;                       </div>

<div>trace(f);                                              </div></div><div>- - -</div><div><br></div><div><br></div><div>Here is the output:</div><div><br></div><div>- - -</div><div>$ swift test.swift</div><div><div>Swift 0.94.1 swift-r7114 cog-r3803</div>

<div><br></div><div>RunID: 20140504-1718-q5qk8b9a</div><div>Progress:  time: Sun, 04 May 2014 17:18:24 -0400</div><div>Execution failed:</div><div>        f, line 3 had mapping errors</div><div>Caused by:</div><div>        java.lang.NullPointerException</div>

<div>        at org.griphyn.vdl.mapping.file.StructuredRegularExpressionMapper.map(StructuredRegularExpressionMapper.java:106)</div><div>        at org.griphyn.vdl.mapping.RootDataNode.addExisting(RootDataNode.java:173)</div>

<div>        at org.griphyn.vdl.mapping.RootDataNode.checkInputs(RootDataNode.java:128)</div><div>        at org.griphyn.vdl.mapping.RootArrayDataNode.checkInputs(RootArrayDataNode.java:104)</div><div>        at org.griphyn.vdl.mapping.RootArrayDataNode.innerInit(RootArrayDataNode.java:92)</div>

<div>        at org.griphyn.vdl.mapping.RootArrayDataNode.futureModified(RootArrayDataNode.java:113)</div><div>        at org.griphyn.vdl.karajan.ArrayIndexFutureList$1.run(ArrayIndexFutureList.java:156)</div><div>        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</div>

<div>        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</div><div>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)</div><div>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</div>

<div>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</div><div>        at java.lang.Thread.run(Thread.java:662)</div></div><div>- - -</div><div><br></div><div><div><br></div></div>

<div><br></div></div>