Epistimis / Epistimis/UDDL-Query-Language

Finish Formatting

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Java
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Update QueryFormatter.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.
1. Give it a name and click Finish.
1. 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
1. Open the UDDL file in the new project.
1. 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 UDDL Queries 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.uddl/src/com/epistimis/uddl/formatting2/UddlFormatter.xtend

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.