summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-20 08:35:09 +0100
committerAraq <rumpf_a@web.de>2014-01-20 08:35:09 +0100
commitd18f40b4e2ea594d10c654616b95b038f808b8ed (patch)
tree9ba45fbd901464139c602b04d9254450f7f24998 /compiler
parent79f59d18f19e8ab2b6878e8ef27c583bdfc16e68 (diff)
downloadNim-d18f40b4e2ea594d10c654616b95b038f808b8ed.tar.gz
updated grammar.txt
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index ff633d157..dd683eb19 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -18,10 +18,10 @@
 # In fact the grammar is generated from this file:
 when isMainModule:
   import pegs
-  var outp = open("compiler/grammar.txt", fmWrite)
+  var outp = open("doc/grammar.txt", fmWrite)
   for line in lines("compiler/parser.nim"):
     if line =~ peg" \s* '#| ' {.*}":
-      outp.writeln matches[0]
+      outp.write matches[0], "\L"
   outp.close
 
 import