class Ktistec::Compiler

Defined in:

utils/compiler.cr

Constant Summary

ACCESSOR = [iri, content, following, followers] of Class
CONSTANTS = [ContentRules::Actor, ContentRules::Activity, ContentRules::Object, ContentRules::Hashtag, ContentRules::Mention, ContentRules::CreateActivity, ContentRules::AnnounceActivity, ContentRules::LikeActivity, ContentRules::FollowActivity, ContentRules::DeleteActivity, ContentRules::UndoActivity, ContentRules::Outbox, ContentRules::Inbox, ContentRules::Notification, ContentRules::NotificationLike, ContentRules::NotificationAnnounce, ContentRules::NotificationFollow, ContentRules::NotificationHashtag, ContentRules::NotificationMention, ContentRules::NotificationReply, ContentRules::NotificationThread, ContentRules::Timeline, ContentRules::TimelineAnnounce, ContentRules::TimelineCreate, ContentRules::Follow, ContentRules::FollowHashtag, ContentRules::FollowThread, ContentRules::FollowMention, ContentRules::Filter, ContentRules::Incoming, ContentRules::Outgoing, ContentRules::InMailboxOf, ContentRules::IsRecipient] of Class

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(input : String) #

Creates a compiler for the given input.


[View source]

Instance Method Detail

def compile #

Compiles the input into a domain with rules.


[View source]

Macro Detail

macro register_accessor(name) #

[View source]
macro register_constant(clazz) #

[View source]