Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish Formatting #6

Open
steve-hickman-epistimis opened this issue Feb 7, 2023 · 0 comments
Open

Finish Formatting #6

steve-hickman-epistimis opened this issue Feb 7, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@steve-hickman-epistimis
Copy link
Contributor

Update TemplateFormatter.xtend so that it properly formats everything.

To see how the formatter works, install everything per the setup instructions. Then start a second Eclipse.

In that second Eclipse,

  1. create a new blank project (File -> New -> Project or File->New->Other->General->Project) and click Next.
  2. Give it a name and click Finish.
  3. copy the following file from the first Eclipse to the new project:
    /com.epistimis.uddl.tests/src/com/epistimis/uddl/tests/UDDL_SDM_Min.uddl
  4. Open the UDDL file in the new project.
  5. Select the edit window, and use Cmd-Shift-F on Mac or Alt-Shift-F on Windows to format the file.

Modifying the code

The code that formats FACE Templates can be found in

/com.epistimis.uddl.query/src/com/epistimis/uddl/query/formatting2/QueryFormatter.xtend

For examples of how to do this (and some generic functions you can use), see
/com.epistimis.face.template/src/com/epistimis/face/template/formatting2/TemplateFormatter.xtend

The task is to use what you see as an example and extend the code to properly format every Template grammar element. You'll need to create one or more template files, each containing at least 3 of each of the things described in the Template.xtext file.

@steve-hickman-epistimis steve-hickman-epistimis added the good first issue Good for newcomers label Feb 9, 2023
@steve-hickman-epistimis steve-hickman-epistimis transferred this issue from another repository Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant