Closed rodsonchue closed 9 years ago
We will implement the explicit form for all the parameters, which will always be in the form <SYMBOL>{<phrase>}
The default parameter symbols will be:
I think we can implement the explicit form for now. For the implicit forms, @rodsonchue can create 2 new issues(tasks) one for Explicit parameters(support for no {}) and another for Implicit parameters. The implicit will be available only for Title, Deadline and Timeframe. Also @rodsonchue clean up the description above to include only the descriptions for this task only.
Leave a comment here if there is anything needed to be edited or is incorrect
List of Affected Command keywords
add
modify
Possible command example(s)
add {Shopping} @{NUS} ~{tml} -{tml} !{tml}
%10
+{Buy 4pkt of Tao Suan for everyone}
#food #cerclovestaosuan
modify Shopping +{Buy 5pkt of Tao Suan}
Task Parameters
Implicit Form:add <phrase><SYMBOL>
Form A:=<word>
modify Book ={Book of Thrones}
={<phrase>}
Form A:@<word>
@{<phrase>}
@{National University of Singapore}
-{<time>}
Form B:-<word>
Implicit:by <time>
-{tmr 3pm}
~{<time>} -{<time>}
Implicit:from ~{} to -{}
~{tmr 2pm} -{tmr 3pm}
Category (hashtag)Form A:#<word>
Integrate ‘twitter mode’ into basic mode.Form B:#{<word>}
Typical use: Form A but to also support Form B for consistency with other syntaxE.gadd ={Buy tao suan} -{tmr 3pm} #ts
Should support multiple categoriesForm A:+<word>
+{<phrase>}
Form A:!<word>
add ={Buy tao suan} !{tmr 3pm}
!{<time>}
PriorityForm A:%{<zeroToTen>}
Priority levels: 0-10Form B:%<zeroToTen>
Where 0 is lowest (green) and10 is highest (red for urgency)BNF Definitions
<phrase>:= <word> | <word><space><phrase> | <phrase><space><word>
<zeroToTen> := 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
<SYMBOL> to be further discussed
title, location, category, description: #71