Commanding a robot through action grammar using non-invasive brain computer interface