Commit cf8a17e2 authored by Neeme Kahusk's avatar Neeme Kahusk

literali test

parent b14b96eb
......@@ -21,7 +21,7 @@ def testchar(value: str, charset: list):
def main():
parser = argparse.ArgumentParser(description='Tests presence of accepted characters in Polaris file.')
parser.add_argument('infile')
parser.add_argument('outfile')
# parser.add_argument('outfile')
# parser.add_argument('-n', '--lexname', default=None)
# parser.add_argument('-v', '--lexver', default=None)
# parser.add_argument('-l', '--language', default=None)
......@@ -31,7 +31,13 @@ def main():
with open(args.infile) as f:
sisu = [parse_line(x) for x in f.readlines()]
for i in sisu:
print(i)
if len(i) > 2:
if i[1] in TEST_ELEMENTS:
if testchar(i[-1], CHARACTERS):
pass
else:
print(i)
#exit()
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment