package seedu.doist.logic.parser;

import java.util.regex.Pattern;

import seedu.doist.logic.parser.ArgumentTokenizer.Prefix;

/**
 * Contains Command Line Interface (CLI) syntax definitions common to multiple commands
 */
public class CliSyntax {

    /* Prefix definitions */
    public static final Prefix PREFIX_PHONE = new Prefix("p/");
    public static final Prefix PREFIX_EMAIL = new Prefix("e/");
    public static final Prefix PREFIX_ADDRESS = new Prefix("a/");
    public static final Prefix PREFIX_TAG = new Prefix("t/");

    /* Patterns definitions */
    public static final Pattern KEYWORDS_ARGS_FORMAT =
            Pattern.compile("(?<keywords>\\S+(?:\\s+\\S+)*)"); // one or more keywords separated by whitespace

}

@@ -313,13 +313,12 @@
 FIX_
-PHONE
+FROM
  = n
@@ -332,10 +332,77 @@
 ix(%22
-p/
+%5C%5Cfrom%22);%0A    public static final Prefix PREFIX_TO = new Prefix(%22%5C%5Cto
 %22);%0A
@@ -443,13 +443,87 @@
 FIX_
+R
 EM
-AIL
+IND = new Prefix(%22%5C%5Cremind_at%22);%0A    public static final Prefix PREFIX_EVERY
  = n
@@ -537,10 +537,15 @@
 ix(%22
-e/
+%5C%5Cevery
 %22);%0A
@@ -587,31 +587,160 @@
 IX_A
-DDRESS = new Prefix(%22a/
+S = new Prefix(%22%5C%5Cas%22);%0A    public static final Prefix PREFIX_UNDER = new Prefix(%22%5C%5Cunder%22);%0A    public static final Prefix PREFIX_BY = new Prefix(%22%5C%5Cby
 %22);%0A
@@ -781,11 +781,19 @@
 FIX_
-TAG
+DESCRIPTION
  = n
@@ -807,10 +807,77 @@
 ix(%22
-t/
+%5C%5Cdesc%22);%0A    public static final Prefix PREFIX_IN = new Prefix(%22%5C%5Cin
 %22);%0A

Create new keywords for commands