summaryrefslogtreecommitdiff
path: root/ste.php
blob: 7e40faece6f0a9490c21ef24caa67aaf430ae0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php

namespace ste;

/* This file is for backwards compatibility only. Use an autoloader and the \kch42\ste namespace in new applications instead! */

require_once(__DIR__ . "/Misc.php");

require_once(__DIR__ . "/ASTNode.php");
require_once(__DIR__ . "/TagNode.php");
require_once(__DIR__ . "/TextNode.php");
require_once(__DIR__ . "/VariableNode.php");

require_once(__DIR__ . "/ParseCompileError.php");
require_once(__DIR__ . "/RuntimeError.php");
require_once(__DIR__ . "/FatalRuntimeError.php");

require_once(__DIR__ . "/BreakException.php");
require_once(__DIR__ . "/ContinueException.php");

require_once(__DIR__ . "/StorageAccessFailure.php");
require_once(__DIR__ . "/CantLoadTemplate.php");
require_once(__DIR__ . "/CantSaveTemplate.php");

require_once(__DIR__ . "/StorageAccess.php");
require_once(__DIR__ . "/FilesystemStorageAccess.php");

require_once(__DIR__ . "/Calc.php");

require_once(__DIR__ . "/Parser.php");
require_once(__DIR__ . "/Transcompiler.php");

require_once(__DIR__ . "/VarNotInScope.php");
require_once(__DIR__ . "/Scope.php");

require_once(__DIR__ . "/STEStandardLibrary.php");
require_once(__DIR__ . "/STECore.php");

/* Providing "proxy classes", so old applications can continue using the ste namespace */

class ASTNode extends \kch42\ste\ASTNode {}
class TagNode extends \kch42\ste\TagNode {}
class TextNode extends \kch42\ste\TextNode {}
class VariableNode extends \kch42\ste\VariableNode {}
class ParseCompileError extends \kch42\ste\ParseCompileError {}
class RuntimeError extends \kch42\ste\RuntimeError {}
class FatalRuntimeError extends \kch42\ste\FatalRuntimeError {}
class StorageAccessFailure extends \kch42\ste\StorageAccessFailure {}
class CantLoadTemplate extends \kch42\ste\CantLoadTemplate {}
class CantSaveTemplate extends \kch42\ste\CantSaveTemplate {}
class FilesystemStorageAccess extends \kch42\ste\FilesystemStorageAccess {}
class Parser extends \kch42\ste\Parser {}
class Transcompiler extends \kch42\ste\Transcompiler {}
class STECore extends \kch42\ste\STECore {}

interface StorageAccess extends \kch42\ste\StorageAccess {}

/* We also put the storage mode constants here (they were outside of the interface before for some reason I can't remember...) */

const MODE_SOURCE = \kch42\ste\StorageAccess::MODE_SOURCE;
const MODE_TRANSCOMPILED = \kch42\ste\StorageAccess::MODE_TRANSCOMPILED;