-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCNSControllerElement.h
More file actions
32 lines (26 loc) · 908 Bytes
/
Copy pathCNSControllerElement.h
File metadata and controls
32 lines (26 loc) · 908 Bytes
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
// CNSControllerElement.h — Wrapper around an AST subtree that represents a single CNS controller.
//
// Part of Sourcy — CNS -> Lua compiler for MUGEN-style characters.
// Licensed under the MIT License. See LICENSE in the project root.
//
// Author: Miguel Angel Exposito Sanchez (radexx), 2012.
#ifndef _CNSCONTROLLERELEMENT_H_
#define _CNSCONTROLLERELEMENT_H_
#include <antlr3.h>
#include <assert.h>
#include "CNSSemantics.h"
class CNSControllerElement
{
private:
pANTLR3_BASE_TREE m_subTree;
int m_rank;
public:
CNSControllerElement(pANTLR3_BASE_TREE grammarTree);
virtual ~CNSControllerElement() = default;
void classify();
bool operator<(const CNSControllerElement& x) const;
bool operator==(const CNSControllerElement& x);
bool operator()(const CNSControllerElement& x, const CNSControllerElement& y) const;
pANTLR3_BASE_TREE getSubTree() const { return m_subTree; }
};
#endif