diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/config.py')
-rwxr-xr-x | webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/config.py | 187 |
1 files changed, 0 insertions, 187 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/config.py b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/config.py deleted file mode 100755 index 19c30770f7..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/config.py +++ /dev/null @@ -1,187 +0,0 @@ -#!/usr/bin/env python -################################################################################ -# -# qooxdoo - the new era of web development -# -# http://qooxdoo.org -# -# Copyright: -# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org -# -# License: -# LGPL: http://www.gnu.org/licenses/lgpl.html -# EPL: http://www.eclipse.org/org/documents/epl-v10.php -# See the LICENSE file in the project's top-level directory for details. -# -# Authors: -# * Sebastian Werner (wpbasti) -# -################################################################################ - -import re - - - - -# -# FILE EXTENSIONS -# - -JSEXT = ".js" -PYEXT = ".py" -XMLEXT = ".xml" -TOKENEXT = ".txt" -DIRIGNORE = [ ".svn", "CVS" ] - - - - -# -# QOOXDOO HEADER SUPPORT -# - -QXHEAD = { - # TODO: Obsolete since 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|Locale|Mixin|Interface).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), - "embed" : re.compile("#embed\(\s*([a-zA-Z0-9]+?)\.([a-zA-Z0-9]+?)/(.+?)\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" ] |