summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-06 20:50:10 +0200
committerAraq <rumpf_a@web.de>2012-08-06 20:50:10 +0200
commitf686647f58c67d90f051dedf441f9b3eb913899b (patch)
tree24ca3ca35ab00089dca9151b152aa3b863dc8a1e
parentce23b814a0255a1a20eefff5e9b3679d52b8aa43 (diff)
downloadNim-f686647f58c67d90f051dedf441f9b3eb913899b.tar.gz
little cleanup for parsecfg module
-rwxr-xr-xlib/pure/parsecfg.nim6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/pure/parsecfg.nim b/lib/pure/parsecfg.nim
index df56fdb84..6a0f2ed49 100755
--- a/lib/pure/parsecfg.nim
+++ b/lib/pure/parsecfg.nim
@@ -30,7 +30,7 @@ import
 include "system/inclrtl"
 
 type 
-  TCfgEventKind* = enum ## enumation of all events that may occur when parsing
+  TCfgEventKind* = enum ## enumeration of all events that may occur when parsing
     cfgEof,             ## end of file reached
     cfgSectionStart,    ## a ``[section]`` has been parsed
     cfgKeyValuePair,    ## a ``key=value`` pair has been detected
@@ -60,11 +60,8 @@ type
     kind: TTokKind           # the type of the token
     literal: string          # the parsed (string) literal
   
-  TParserState = enum 
-    startState # , commaState # not yet used
   TCfgParser* = object of TBaseLexer ## the parser object.
     tok: TToken
-    state: TParserState
     filename: string
 
 # implementation
@@ -82,7 +79,6 @@ proc open*(c: var TCfgParser, input: PStream, filename: string,
   ## number information in the generated error messages.
   lexbase.open(c, input)
   c.filename = filename
-  c.state = startState
   c.tok.kind = tkInvalid
   c.tok.literal = ""
   inc(c.linenumber, lineOffset)