Category talk:Wren-regex: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
Added blurb and source code for new 'Wren-regex' module.
 
PureFox (talk | contribs)
m →‎Source Code (Wren): Now uses Wren S/H lexer.
 
(3 intermediate revisions by the same user not shown)
Line 1:
===Regular expressionexpressions===
 
Although the 'Wren-pattern' module performs well for something written entirely in Wren, it is not very fast for large amounts of text, uses non-standard syntax and there are certain patterns which it either does not support at all or supports to only a limited extent.
Line 16:
 
===Source Code (Wren)===
<langsyntaxhighlight ecmascriptlang="wren">/* Module "regex.wren" */
 
/* Regex represents a reference to a compiled Go Regexp object.
Line 94:
foreign static rename(oldPath, newPath) // renames the file
foreign static remove(path) // removes the file
}</langsyntaxhighlight>
 
===Source Code (Go)===
<langsyntaxhighlight lang="go">/* go build wren-regex.go */
 
package main
Line 515:
vm.InterpretFile(fileName)
vm.Free()
}</langsyntaxhighlight>
Return to "Wren-regex" page.