Package astra.lang

Class Compiler


  • public class Compiler
    extends Module
    Basic Compiler API.

    This class is highly experimental and is designed to support the creation of rules from strings.

    Author:
    Rem Collier
    • Constructor Detail

      • Compiler

        public Compiler()
    • Method Detail

      • inline

        public boolean inline()
        Internal method indicating that methods in this API do not need to be threaded.
        Overrides:
        inline in class Module
      • compileRule

        public boolean compileRule​(String source,
                                   ActionParam<Rule> rule)
        Action that dumps the agents beliefs to the console.
        Returns:
        true if the action was successful, false otherwise
      • compileEvent

        public Event compileEvent​(String source)