diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.3-sdk/frontend/framework/tool/modules/config.py')
-rwxr-xr-x | webapps/qooxdoo-0.6.3-sdk/frontend/framework/tool/modules/config.py | 168 |
1 files changed, 0 insertions, 168 deletions
diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/tool/modules/config.py b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/tool/modules/config.py deleted file mode 100755 index 5ac9b75500..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/tool/modules/config.py +++ /dev/null @@ -1,168 +0,0 @@ -#!/usr/bin/env python - -import re - - - - -# -# FILE EXTENSIONS -# - -JSEXT = ".js" -PYEXT = ".py" -XMLEXT = ".xml" -TOKENEXT = ".txt" -DIRIGNORE = [ ".svn", "CVS" ] - - - - -# -# QOOXDOO HEADER SUPPORT -# - -QXHEAD = { - # TODO: Obsolete with 0.7 - "defineClass" : re.compile('qx.OO.defineClass\(\s*["\']([\.a-zA-Z0-9_-]+)["\'](\s*\,\s*([\.a-zA-Z0-9_-]+))?', re.M), - - # 0.7 API - "classDefine" : re.compile('qx.Clazz.define\(\s*["\']([\.a-zA-Z0-9_-]+)["\']?', re.M), - "superClass" : re.compile('extend\s*:\s*([\.a-zA-Z0-9_-]+)', re.M), - - "id" : re.compile("#id\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "module" : re.compile("#module\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "require" : re.compile("#require\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "use" : re.compile("#use\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "after" : re.compile("#after\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "load" : re.compile("#load\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "optional" : re.compile("#optional\(\s*([\.a-zA-Z0-9_-]+?)\s*\)", re.M), - "resource" : re.compile("#resource\(\s*(.*?)\s*\)", re.M) -} - - - - - -# -# JAVASCRIPT SUPPORT -# - -JSBUILTIN = [ "Object", "Array", "RegExp", "Math", "String", "Number", "Error" ] - -JSTOKENS = { - "." : "DOT", - "," : "COMMA", - ":" : "COLON", - "?" : "HOOK", - ";" : "SEMICOLON", - "!" : "NOT", - "~" : "BITNOT", - "\\" : "BACKSLASH", - - "+" : "ADD", - "-" : "SUB", - "*" : "MUL", - "/" : "DIV", - "%" : "MOD", - - "{" : "LC", - "}" : "RC", - "(" : "LP", - ")" : "RP", - "[" : "LB", - "]" : "RB", - - "<" : "LT", - "<=" : "LE", - ">" : "GT", - ">=" : "GE", - "==" : "EQ", - "!=" : "NE", - "===" : "SHEQ", - "!==" : "SHNE", - - "=" : "ASSIGN", - - "+=" : "ASSIGN_ADD", - "-=" : "ASSIGN_SUB", - "*=" : "ASSIGN_MUL", - "/=" : "ASSIGN_DIV", - "%=" : "ASSIGN_MOD", - - "|=" : "ASSIGN_BITOR", - "^=" : "ASSIGN_BITXOR", - "&=" : "ASSIGN_BITAND", - "<<=" : "ASSIGN_LSH", - ">>=" : "ASSIGN_RSH", - ">>>=" : "ASSIGN_URSH", - - "&&" : "AND", - "||" : "OR", - - "|" : "BITOR", - "^|" : "BITXOR", - "&" : "BITAND", - - "^" : "POWEROF", - - "<<" : "LSH", - ">>" : "RSH", - ">>>" : "URSH", - - "++" : "INC", - "--" : "DEC", - - "::" : "COLONCOLON", - ".." : "DOTDOT", - - "@" : "XMLATTR", - - "//" : "SINGLE_COMMENT", - "/*" : "COMMENT_START", - "*/" : "COMMENT_STOP", - "/*!" : "DOC_START" -} - -JSPROTECTED = { - "null" : "NULL", - "Infinity" : "INFINITY", - "true" : "TRUE", - "false" : "FALSE", - - "this" : "THIS", - "var" : "VAR", - "new" : "NEW", - "prototype" : "PROTOTYPE", - "return" : "RETURN", - "function" : "FUNCTION", - - "while" : "WHILE", - "if" : "IF", - "else" : "ELSE", - "switch" : "SWITCH", - "case" : "CASE", - "default" : "DEFAULT", - "break" : "BREAK", - "continue" : "CONTINUE", - "goto" : "GOTO", - "do" : "DO", - "delete" : "DELETE", - "for" : "FOR", - "in" : "IN", - "with" : "WITH", - "try" : "TRY", - "catch" : "CATCH", - "finally" : "FINALLY", - "throw" : "THROW", - "instanceof" : "INSTANCEOF", - "typeof" : "TYPEOF", - "void" : "VOID", - "call" : "CALL", - "apply" : "APPLY" -} - -JSSPACE_BEFORE = [ "INSTANCEOF", "IN" ] -JSSPACE_AFTER = [ "VAR", "NEW", "GOTO", "INSTANCEOF", "TYPEOF", "DELETE", "IN", "THROW", "CASE" ] -JSSPACE_AFTER_USAGE = [ "RETURN", "FUNCTION" ] -JSPARANTHESIS_BEFORE = [ "ELSE", "FINALLY", "CATCH", "WHILE" ] |