codecs lib

This commit is contained in:
Irmen de Jong 2018-06-08 20:00:36 +02:00
parent 68dd767be8
commit 1ea7c015c8
3 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,7 @@ def char_to_bytevalue(character: str, petscii: bool=True) -> int:
# ASCII/UNICODE-to-PETSCII translation table
# Unicode symbols supported that map to a PETSCII character: £ ↑ ← ♠ ♥ ♦ ♣ π ● ○ and various others
# @todo cbmcodecs pypi package? extend that with screencode codec?
# @todo cbmcodecs pypi package?
ascii_to_petscii_trans = str.maketrans({
'\f': 147, # form feed becomes ClearScreen "{clear}"
'\n': 13, # line feed becomes a RETURN "{cr}" (not a line feed)

View File

@ -6,6 +6,7 @@ eliminates statements that have no effect, optimizes calculations etc.
Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
"""
from typing import List, no_type_check, Union
from .datatypes import DataType, VarType
from .plyparse import *

View File

@ -1,3 +1,4 @@
attrs
ply
git+https://github.com/irmen/cbmcodecs.git@master
cbmcodecs >= 0.2.0