Beispiel #1
0
        public CommandEntry AddCommand(CommandTokenMatcher Matcher)
        {
            var Entry = new CommandEntry {
                Matcher = Matcher
            };

            Entry.ManualName = Matcher.FindFirstKeyWord();
            Commands.Add(Entry);
            return(Entry);
        }
Beispiel #2
0
        public CommandEntry AddCommand(CommandTokenMatcher Matcher)
        {
            var Entry = new CommandEntry {
                Matcher = Matcher
            };

            Entry.SourceModule = ModuleBeingInitialized;
            Entry.ManualName   = Matcher.FindFirstKeyWord();
            Commands.Add(Entry);
            return(Entry);
        }
Beispiel #3
0
 public static CommandTokenMatcher Optional(CommandTokenMatcher Sub, String BooleanProperty = null)
 {
     return(new Optional(Sub, BooleanProperty));
 }
Beispiel #4
0
 public Optional(CommandTokenMatcher Sub, String BooleanProperty = null)
 {
     this.Sub             = Sub;
     this.BooleanProperty = BooleanProperty;
 }
Beispiel #5
0
 public static CommandTokenMatcher MustMatch(String Message, CommandTokenMatcher Sub)
 {
     return(new FailIfNoMatches(Sub, Message));
 }
Beispiel #6
0
 public FailIfNoMatches(CommandTokenMatcher Sub, String Message)
 {
     this.Sub     = Sub;
     this.Message = Message;
 }
Beispiel #7
0
 public static CommandTokenMatcher BestScore(String ScoreArgument, CommandTokenMatcher Sub)
 {
     return(new ScoreGate(Sub, ScoreArgument));
 }
Beispiel #8
0
 internal ScoreGate(CommandTokenMatcher Sub, String ScoreArgument)
 {
     this.ScoreArgument = ScoreArgument;
     this.Sub           = Sub;
 }
Beispiel #9
0
 public static CommandTokenMatcher Optional(CommandTokenMatcher Sub)
 {
     return(new Optional(Sub));
 }
Beispiel #10
0
 public Optional(CommandTokenMatcher Sub)
 {
     this.Sub = Sub;
 }