package org.teamstbf.yats.logic.parser;

import java.util.regex.Pattern;

import org.teamstbf.yats.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_LOCATION = new Prefix("-l ");
	public static final Prefix PREFIX_START_TIME = new Prefix("-s ");
	public static final Prefix PREFIX_END_TIME = new Prefix("-e ");
	public static final Prefix PREFIX_TAG = new Prefix("-t ");
	public static final Prefix PREFIX_DESCRIPTION = new Prefix("-d ");
	public static final Prefix PREFIX_DEADLINE = new Prefix("-by ");
	public static final Prefix PREFIX_RECURRENCE = new Prefix("-r ");
	public static final Prefix PREFIX_HOURS = new Prefix("-h ");
	public static final Prefix PREFIX_MINUTES = new Prefix("-m ");
	public static final Prefix PREFIX_TIME_MULTIPLE = new Prefix("-time ");

	/* NLP Prefix definitions */
	public static final Prefix PREFIX_NLP_TIME = new Prefix(",");
	public static final Prefix PREFIX_NLP_LOCATION = new Prefix("@");
	public static final Prefix PREFIX_NLP_TAG = new Prefix("#");
	public static final Prefix PREFIX_NLP_HOURS = new Prefix("=");
	public static final Prefix PREFIX_NLP_DESCRIPTION = new Prefix("//");
	public static final Prefix PREFIX_NLP_RECURRENCE = new Prefix("!");

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

}

@@ -343,17 +343,16 @@
 efix(%22-l
- 
 %22);%0A%09pub
@@ -409,17 +409,16 @@
 efix(%22-s
- 
 %22);%0A%09pub
@@ -473,17 +473,16 @@
 efix(%22-e
- 
 %22);%0A%09pub
@@ -531,18 +531,17 @@
 refix(%22-
-t 
+T
 %22);%0A%09pub
@@ -599,17 +599,16 @@
 efix(%22-d
- 
 %22);%0A%09pub
@@ -664,17 +664,16 @@
 fix(%22-by
- 
 %22);%0A%09pub
@@ -730,17 +730,16 @@
 efix(%22-r
- 
 %22);%0A%09pub
@@ -791,17 +791,16 @@
 efix(%22-h
- 
 %22);%0A%09pub
@@ -854,17 +854,16 @@
 efix(%22-m
- 
 %22);%0A%09pub
@@ -927,12 +927,8 @@
 (%22-t
-ime 
 %22);%0A

Fix edit clear tag