java - Validate a String Using Xtext Validator -


i baby in using xtext , stuck in finding solution problem. have built xtext grammar of dsl , created web-based editor using ace. inject xtext validator module dependency in rest project , make validating dsl typed user on web interface. after validating it, want display error messages on web if there's any. otherwise, execute corresponding operations.

what know need build dsl interpreter , export xtext project jar file. but, don't have idea interface of xtext allows me make use grammar rules validate inbound string? should translate string emf model first , use iconcretesyntaxvalidator.validateobject() function? if yes, give me example of how that?

thanks in advance! appreciated!

please check iresourcevalidator , validate method. that'll provide correct answer. iconcretesyntaxvalidator narrow usecase create objects in-memory means of constructor calls , setter invocation , want write these objects language syntax. not you're doing there.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -