It seems as if minus is not allowed in docker image names.
For example FROM anapsix/alpine-java leads to an error indicator "Missing EOF at '-'".
My guess is that the problem lies in your DSL definition of VALID_IMAGE_NAME which uses ID as reference for valid names.
The ID is inherited from the grammar org.eclipse.xtext.common.Terminals with following definition:
terminal ID :
('^')?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
Well, there is no minus allowed here. It should be an easy fix...