diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-02-04 00:47:59 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-02-04 00:47:59 +0100 |
commit | eca05d2a3398f25be13282072da1ff1c284afcd7 (patch) | |
tree | b47f74a1af98da72d79f5eea43f7a2b38baccd06 /lib/pure | |
parent | e62ef0ff60f05b1daede1033fc0204d19316b48c (diff) | |
download | Nim-eca05d2a3398f25be13282072da1ff1c284afcd7.tar.gz |
cleanup of library docs
Diffstat (limited to 'lib/pure')
-rwxr-xr-x | lib/pure/parseutils.nim | 7 | ||||
-rwxr-xr-x | lib/pure/re.nim | 2 | ||||
-rwxr-xr-x | lib/pure/unicode.nim | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/lib/pure/parseutils.nim b/lib/pure/parseutils.nim index 0878f87eb..04d2a7973 100755 --- a/lib/pure/parseutils.nim +++ b/lib/pure/parseutils.nim @@ -7,7 +7,7 @@ # distribution, for details about the copyright. # -## Helpers for parsing. +## This module contains helpers for parsing tokens, numbers, identifiers, etc. {.deadCodeElim: on.} @@ -25,8 +25,6 @@ template newException(exceptn, message: expr): expr = const Whitespace = {' ', '\t', '\v', '\r', '\l', '\f'} - Letters = {'A'..'Z', 'a'..'z'} - Digits = {'0'..'9'} IdentChars = {'a'..'z', 'A'..'Z', '0'..'9', '_'} IdentStartChars = {'a'..'z', 'A'..'Z', '_'} ## copied from strutils @@ -218,6 +216,9 @@ proc parseBiggestFloat*(s: string, number: var biggestFloat, start = 0): int = result = i - start proc parseFloat*(s: string, number: var float, start = 0): int = + ## parses a float starting at `start` and stores the value into `number`. + ## Result is the number of processed chars or 0 if there occured a parsing + ## error. var bf: biggestFloat result = parseBiggestFloat(s, bf, start) number = bf diff --git a/lib/pure/re.nim b/lib/pure/re.nim index 1328f5f1f..cef7c85ac 100755 --- a/lib/pure/re.nim +++ b/lib/pure/re.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2009 Andreas Rumpf +# (c) Copyright 2010 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim index 2a53d7660..bebbe56c5 100755 --- a/lib/pure/unicode.nim +++ b/lib/pure/unicode.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2009 Andreas Rumpf +# (c) Copyright 2010 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. |