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 #1

Open
steve-hickman-epistimis opened this issue Jan 29, 2023 · 0 comments
Open

Finish Formatting #1

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

Comments

@steve-hickman-epistimis
Copy link
Contributor

Update FaceFormatter.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 the FACE file can be found in

/com.epistimis.face/src/com/epistimis/face/formatting2FaceFormatter.xtend
It already contains a lot of work - but it is not yet complete. Nor is the sample FACE file. Your task is to use what you see as an example and extend the code to properly format

  • Everything you see in the existing FACE file;
  • One or more larger FACE files that contains at least 3 of each of the things described in the Face.xtext file.

Note that the example FACE file you see is already partially formatted. That won't always be the case. You should create sample files that take worst case formatted files (there are at least 2 worst cases - at opposite ends of the spectrum) and make sure your formatting works on them as well. You can create those worst case formatted files starting from the sample file if you want.

@steve-hickman-epistimis steve-hickman-epistimis added the good first issue Good for newcomers label Jan 29, 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