grammar com.perforce.example.p4dsl.P4Dsl with org.eclipse.xtext.common.Terminals
generate p4Dsl "http://www.perforce.com/example/p4dsl/P4Dsl"
Model:
command+=Command*;
Command:
'p4' P4Command;
P4Command:
PUCFlag | FileBasedCommand;
PUCFlag:
Port | User | Client;
Port:
'-p' name=P4PORT
p4command+=P4Command;
User:
'-u' name=ID
p4command+=P4Command;
Client:
'-c' name=ID
p4command+=P4Command;
FileBasedCommand:
Add | Edit | Delete;
Add:
'add' name=FILE;
Edit:
'edit' name=FILE;
Delete:
'delete' name=FILE;
P4PORT:
ID ':' INT;
FILE:
ID | ID '.' ID;
# |
Change |
User |
Description |
Committed |
|
#1
|
8258 |
Liz Lam |
Initial add of p4dsl - an exploration of Xtext using the p4 command line as an example. |
|
|