bugfixes: re; pegs module
This commit is contained in:
parent
230567588b
commit
ddb7185482
13 changed files with 97 additions and 72 deletions
|
|
@ -19,7 +19,7 @@ Welcome to Nimrod
|
|||
|
||||
.. code-block:: nimrod
|
||||
# Filter key=value pairs
|
||||
import regexprs
|
||||
import re
|
||||
|
||||
for x in lines("myfile.txt"):
|
||||
if x =~ r"(\w+)=(.*)":
|
||||
|
|
@ -70,7 +70,7 @@ Nimrod is expressive
|
|||
generics, etc.
|
||||
* User-defineable operators; code with new operators is often easier to read
|
||||
than code which overloads built-in operators. In the code snippet, the
|
||||
``=~`` operator is defined in the ``regexprs`` module.
|
||||
``=~`` operator is defined in the ``re`` module.
|
||||
* Macros can modify the abstract syntax tree at compile time.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue