I have the xtext project that until now i would run it as a plug in.
now i want to create a new project (Main.java) using and import the jar file of the xtext
and by giving the new project (Main.java) a file path string it will run the dsl and check if the file corresponding to the language rules.
how do i combine the xtext so it will go over the file like it did in the plug in?