-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parser #132
Parser #132
Conversation
…ation.java for automatic testing of the definitions in the ucdl.yml file on startup.
Seems to work unless there will be new grammar changes.
Fixed problem with expecting <EOF> after each DEFINITION instead of START.
Also started implementing translation from javacc to AbstractSyntaxTree.
Fixed Exception-forwarding. Replaced wrong ParseException with correct one.
Requires a lot of refactoring, but should work.
… generated files from javacc).
Fixed error forwarding inside SyntaxChecker.parseString(). Removed unnecessary import in UftosApplication. Fixed consistency check for if-bodies. Updated warning suppression in generated javacc-files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked at the DefinitionParser
yet but everything else looks super clean actually! Much better than I expected 😅
server/src/main/java/de/uftos/dto/ucdl/ast/ControlSequenceDto.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/UcdlRepositoryImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/UcdlRepositoryImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/UcdlRepositoryImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/UcdlParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/UcdlParser.java
Outdated
Show resolved
Hide resolved
Fixed problem with filtering by numbers.
…on like isEmpty(). This will need a new javacc-parser and likely require fixing new problems with the DefinitionParser.
Seems to have no further issues... Seems suspicious...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I didn't completely understand (and thus validate) the logic of the parser. I tried my best and I think it looks good, but it's also very complex, so.... My focus was on readability and refactoring stuff for the most part
server/src/main/java/de/uftos/repositories/ucdl/UcdlRepositoryImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/UcdlRepositoryImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Show resolved
Hide resolved
server/src/main/java/de/uftos/repositories/ucdl/parser/DefinitionParser.java
Outdated
Show resolved
Hide resolved
Cloning Hashmaps in DefinitionParser. Removed unnecessary line break in DefinitionParser. Parsing boolean in DefinitionParser. Added comment about magic numbers in DefinitionParser. Fixed Typo in DefinitionParser. And even more...
Removed Option "=" for equals. Including "_" in the names of Nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for putting all this effort into this!
Closes #44