src/script/ast.h

Mon, 26 Jan 2015 01:16:56 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 26 Jan 2015 01:16:56 +0200
branch
scripting
changeset 921
e2e9f594de66
child 923
e15a577a0bfe
permissions
-rw-r--r--

- commit work done on scripting

921
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 #pragma once
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 #include <QVector>
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3 #include <QSharedPointer>
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
5 namespace Script
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 {
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7 enum AstNodeType
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 {
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10 };
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
12 class AstNode
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13 {
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 public:
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
15 AstNode (QSharedPointer<AstNode> parent);
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
17 private:
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
18 QVector<QSharedPointer<AstNode>> m_children;
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
19 QSharedPointer<AstNode> m_parent;
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
20 };
e2e9f594de66 - commit work done on scripting
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
21 }

mercurial