# Path: rw/scope.py
# NOT_PROVIDED = object()
# SCOPE_CHAIN = None
# LOG = logging.getLogger(__name__)
#         SCOPE_CHAIN = []
# class OutsideScopeError(Exception):
# class Scope(dict):
# class SubScope(Scope):
# class SubScopeView(object):
#     def __init__(self, name=None):
#     def provider(self, key, provider):
#     def activate(self, plugin):
#     def subscope(self, key):
#     def get(self, key, default=NOT_PROVIDED, scopes=None):
#     def __call__(self):
#     def run(self, target_coroutine):
#     def __init__(self, name, parent):
#     def __init__(self, key, scope_chain):
#     def __getitem__(self, item):
#     def __eq__(self, other):
# def set_context(scope):
# def get_current_scope():
# def get(key, default=NOT_PROVIDED):
# def inject(fn):
#     def wrapper(*args, **kwargs):
# def setup_app_scope(name, scope):


import re
import tornado.web
import rw.plugin
from future.builtins import range
from tornado import util
from rw import scope
# Copyright 2014 Florian Ludwig
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import, division, print_function, with_statement





_rule_re = re.compile(r'''
    (?P<static>[^<]*)                           # static rule data

# Path: rw/scope.py
# NOT_PROVIDED = object()
# SCOPE_CHAIN = None
# LOG = logging.getLogger(__name__)
#         SCOPE_CHAIN = []
# class OutsideScopeError(Exception):
# class Scope(dict):
# class SubScope(Scope):
# class SubScopeView(object):
#     def __init__(self, name=None):
#     def provider(self, key, provider):
#     def activate(self, plugin):
#     def subscope(self, key):
#     def get(self, key, default=NOT_PROVIDED, scopes=None):
#     def __call__(self):
#     def run(self, target_coroutine):
#     def __init__(self, name, parent):
#     def __init__(self, key, scope_chain):
#     def __getitem__(self, item):
#     def __eq__(self, other):
# def set_context(scope):
# def get_current_scope():
# def get(key, default=NOT_PROVIDED):
# def inject(fn):
#     def wrapper(*args, **kwargs):
# def setup_app_scope(name, scope):


# Path: rw/routing.py
import re
import tornado.web
import rw.plugin
from future.builtins import range
from tornado import util
from rw import scope

# Copyright 2014 Florian Ludwig
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import, division, print_function, with_statement





_rule_re = re.compile(r'''
    (?P<static>[^<]*)                           # static rule data

    <