Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F2731053
contextrule.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 14, 3:14 AM
Size
688 B
Mime Type
text/x-c++
Expires
Mon, Mar 16, 3:14 AM (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
243804
Attached To
rXR Xreate
contextrule.h
View Options
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* contextrule.h
*
* Created on: Jan 2, 2016
* Author: pgess <v.melnychenko@xreate.org>
*/
#ifndef SRC_CONTEXTRULE_H_
#define SRC_CONTEXTRULE_H_
#include "ast.h"
#include <string>
namespace xreate {
typedef unsigned int ScopePacked;
class ContextRule {
public:
ContextRule(const Expression& rule);
std::string compile(const ScopePacked& scopeId) const;
private:
Expression head;
Expression guards;
Expression body;
};
}
#endif /* SRC_CONTEXTRULE_H_ */
Event Timeline
Log In to Comment