#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#

import re
import sys
import json

from jasy.script.tokenize.Lang import keywords
from jasy.script.parse.Lang import expressions, futureReserved

high_unicode = re.compile(r"\\u[2-9A-Fa-f][0-9A-Fa-f]{3}")
ascii_encoder = json.JSONEncoder(ensure_ascii=True)
unicode_encoder = json.JSONEncoder(ensure_ascii=False)

#
# Class
#


class Compressor:
    __semicolonSymbol = ";"
    __commaSymbol = ","


    def __init__(self, format=None):
        if format: