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.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ Bugfixes
|
|||
- Fixed ``unicode.toUTF8``.
|
||||
- The compiler now rejects ``'\n'``.
|
||||
- ``times.getStartMilsecs()`` now works on Mac OS X.
|
||||
- Fixed a bug in ``pegs.match`` concerning start offsets.
|
||||
|
||||
|
||||
Additions
|
||||
|
|
@ -45,6 +46,7 @@ Additions
|
|||
- Added ``xmltree`` module.
|
||||
- Added ``xmlparser`` module.
|
||||
- Added ``htmlparser`` module.
|
||||
- Added ``re`` module.
|
||||
- Many wrappers now do not contain redundant name prefixes (like ``GTK_``,
|
||||
``lua``). The new wrappers are available in ``lib/newwrap``. Change
|
||||
your configuration file to use these.
|
||||
|
|
@ -72,6 +74,7 @@ Changes affecting backwards compatibility
|
|||
named arguments only, because the parameter order will change the next
|
||||
version!
|
||||
- ``atomic`` and ``let`` are now keywords.
|
||||
- The ``\w`` character class for pegs now includes the digits ``'0'..'9'``.
|
||||
|
||||
|
||||
2009-12-21 Version 0.8.6 released
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import strutils
|
||||
echo "Give a list of integers (separated by spaces): ",
|
||||
stdin.readLine.splitSeq.each(parseInt).max,
|
||||
stdin.readLine.split.each(parseInt).max,
|
||||
" is the maximum!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue