Software /
code /
prosody
Comparison
tools/erlparse.lua @ 489:237cddb1a785
Fixed the ejabberd importer to work with the pipe sign "|" as a separator in erlang lists
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 30 Nov 2008 02:08:37 +0500 |
parent | 482:b86082df0bc0 |
child | 519:cccd610a0ef9 |
comparison
equal
deleted
inserted
replaced
485:f8456f0da769 | 489:237cddb1a785 |
---|---|
96 return readNumber(); | 96 return readNumber(); |
97 elseif ch == "\"" then | 97 elseif ch == "\"" then |
98 return readString(); | 98 return readString(); |
99 elseif ch == "<" then | 99 elseif ch == "<" then |
100 return readSpecialString(); | 100 return readSpecialString(); |
101 elseif isSpace(ch) or ch == "," then | 101 elseif isSpace(ch) or ch == "," or ch == "|" then |
102 read(); | 102 read(); |
103 return readItem(); | 103 return readItem(); |
104 else | 104 else |
105 --print("Unknown char: "..ch); | 105 --print("Unknown char: "..ch); |
106 return nil; | 106 return nil; |