summaryrefslogtreecommitdiff
path: root/ste.php
blob: 287918b97ab0367f46fea3c6965f3f658cfab2bc (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__ . "/src/Misc.php");

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

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

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

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

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

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

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

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

require_once(__DIR__ . "/src/STEStandardLibrary.php");
require_once(__DIR__ . "/src/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;