Revision: 3924 Author: valhallasw Date: 2007-07-29 21:17:39 +0000 (Sun, 29 Jul 2007)
Log Message: ----------- STAR -> ASTERISK (Maybe engrish isn't that bad at all ^_^)
Modified Paths: -------------- trunk/pywikiparser/Lexer.py trunk/pywikiparser/Parser.py
Modified: trunk/pywikiparser/Lexer.py =================================================================== --- trunk/pywikiparser/Lexer.py 2007-07-29 21:09:30 UTC (rev 3923) +++ trunk/pywikiparser/Lexer.py 2007-07-29 21:17:39 UTC (rev 3924) @@ -25,7 +25,7 @@ ('PIPE', '| Pipe symbol'), ('EQUAL_SIGN', '= Equal sign'), ('APOSTROPHE', '' Apostrophe'), - ('STAR', '* Star sign'), + ('ASTERISK', '* Star sign'), ('COLON', ': Colon'), ('SEMICOLON', '; Semicolon'), ('HASH', '# Hash symbol'), @@ -80,7 +80,7 @@ elif (c == '>'): yield (Tokens.ANGL_CLOSE, num) elif (c == '='): yield (Tokens.EQUAL_SIGN, num) elif (c == '''): yield(Tokens.APOSTROPHE, num) - elif (c == '*'): yield (Tokens.STAR, num) + elif (c == '*'): yield (Tokens.ASTERISK, num) elif (c == ':'): yield (Tokens.COLON, num) elif (c == ';'): yield (Tokens.SEMICOLON, num) elif (c == '#'): yield (Tokens.HASH, num)
Modified: trunk/pywikiparser/Parser.py =================================================================== --- trunk/pywikiparser/Parser.py 2007-07-29 21:09:30 UTC (rev 3923) +++ trunk/pywikiparser/Parser.py 2007-07-29 21:17:39 UTC (rev 3924) @@ -137,8 +137,8 @@ token = self.expect(Tokens.ANGL_CLOSE) return ['>'*token[1]]
- def parseSTAR(self): - token = self.expect(Tokens.STAR) + def parseASTERISK(self): + token = self.expect(Tokens.ASTERISK) return ['*'*token[1]]
def parseCOLON(self):