-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathg.gram
18 lines (15 loc) · 804 Bytes
/
g.gram
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#JSGF V1.0;
/**
* JSGF Grammar
*/
grammar grammar;
public <botCommand> = (okay);
public <feelings> = ( how are you | say hello);
public <voices> = ( change to voice one | change to voice two | change to voice three );
public <amazing> = ( say amazing | what day is today );
public <nervous> = (who is your daddy | obey to me beach | hey boss);
public <number> = ( zero | one | two | three | four | five | six | seven | nine | ten
| eleven | twelve | thirteen | fourteen | fifteen | sixteen | seventeen | eighteen | nineteen | twenty
| thirty | forty | fifty | sixty | seventy | eighty | ninety |
hundred | thousand | million | billion)+;
public <syntax> = <number>{1} (plus | minus | multiply | division){1} <number>{1};