Skip to content

Instantly share code, notes, and snippets.

@arielqw
arielqw / xv6_patch
Created April 11, 2015 10:36
creating a patch file for assignment 1 os152 bgu
git remote add bgu http://www.cs.bgu.ac.il/~os152/xv6.git
git fetch bgu
git diff master bgu/master > ID1_ID2.patch
If you have:
MyThings ::= { thing [X] ,}
[ meaning MyThings can be an empty list or a list of one or more Thing separated by comma ]
Then you can write the following grammer :
MyThings ::= { ThingsList:things } {: RESULT = new MyThings(things); :}
| { } {: RESULT = new MyThings( new ThingsList() ); :}