X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=plomrogue%2Fparser.py;h=6a6aaaaa59087c2f5a240efbff92ec4025bbc752;hb=ff01e1b466c1df7c938d1281ca34718e555bcf67;hp=5782d695fe1f026d4dc2b00f422cda389fae9988;hpb=8c5624db0c2b463a490a425fc0f8baf2761d7d23;p=plomrogue2
diff --git a/plomrogue/parser.py b/plomrogue/parser.py
index 5782d69..6a6aaaa 100644
--- a/plomrogue/parser.py
+++ b/plomrogue/parser.py
@@ -106,6 +106,12 @@ class Parser:
if not arg.isdigit():
raise ArgError('Argument must be non-negative integer.')
args += [int(arg)]
+ elif tmpl == 'char':
+ try:
+ ord(arg)
+ except TypeError:
+ raise ArgError('Argument must be single character.')
+ args += [arg]
elif tmpl == 'yx_tuple:nonneg':
args += [self.parse_yx_tuple(arg, 'nonneg')]
elif tmpl == 'yx_tuple:pos':