Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
bb775f9
Add basic lexer
illuminator3 Sep 8, 2021
e27355c
Improve gradle structure (6aafd67500ea0196e24703a2d349f506948a7d83)
marko-radosavljevic Sep 9, 2021
02d02b3
Create a module for the formatter and move all related packages to it
illuminator3 Sep 9, 2021
5a5c8c3
Use built-in toList instead of collecting
illuminator3 Sep 9, 2021
084fa55
Add yield keyword
illuminator3 Sep 9, 2021
c042035
Fix number pattern
illuminator3 Sep 9, 2021
1f6f104
Split code into separate method
illuminator3 Sep 9, 2021
d17dc02
Remove singleton pattern
illuminator3 Sep 9, 2021
0b84285
Put ternary into separate method
illuminator3 Sep 9, 2021
b6ab21b
Merge branch 'develop' into feature/formatter
illuminator3 Sep 9, 2021
9cd9699
Remove unused import
illuminator3 Sep 9, 2021
b556f80
Merge remote-tracking branch 'origin/feature/formatter' into feature/…
illuminator3 Sep 9, 2021
fe5be0f
Add build.gradle file
illuminator3 Sep 9, 2021
1bf6c47
Fix the number regex
illuminator3 Sep 9, 2021
7f1bdb3
Fix typo (CLOSE_PARANTHESIS -> CLOSE_PARENTHESIS)
illuminator3 Sep 9, 2021
36a3648
Add comment token
illuminator3 Sep 9, 2021
444b9c6
Add comment token to the display types
illuminator3 Sep 9, 2021
e4fea63
Add ++ and -- tokens
illuminator3 Sep 9, 2021
8606d38
Fix lexer picking up wrong tokens (e.g. it picks up 'format' as 'for'…
illuminator3 Sep 9, 2021
f31efda
Add CATCH and TRY keywords & remove OPEN_DIAMOND and CLOSE_DIAMOND in…
illuminator3 Sep 10, 2021
225b350
Fix multiline comments (somewhat)
illuminator3 Sep 10, 2021
b054867
Add some more tokens
illuminator3 Sep 10, 2021
7d49cd1
Add ELSE_IF, BOOL_AND and BOOL_OR tokens & fix keywords
illuminator3 Sep 10, 2021
34b3a75
Initial commit of the formatter
illuminator3 Sep 10, 2021
52c3be3
Added javadoc
illuminator3 Sep 10, 2021
26733a5
Apply formatting (by spotless)
illuminator3 Sep 10, 2021
c05aa32
Add else keyword
illuminator3 Sep 10, 2021
139461e
Add utility method
illuminator3 Sep 10, 2021
1d6198a
Change tab to 4 spaces
illuminator3 Sep 10, 2021
f942e8a
Fix else not formatting properly
illuminator3 Sep 10, 2021
1e77938
Add unit tests
illuminator3 Sep 10, 2021
36b8578
Clean up stuff and fix typos
illuminator3 Sep 10, 2021
d38aa28
Rename "IndexedToken" to "CheckedToken"
illuminator3 Sep 10, 2021
b8096c7
Merge branch 'develop' into feature/formatter
illuminator3 Sep 10, 2021
e5a6caa
Change test display name
illuminator3 Sep 11, 2021
7ec3e9a
Remove debug statement
illuminator3 Sep 11, 2021
4237e97
Add test case
illuminator3 Sep 11, 2021
21c5560
Fix keywords not getting recognized if at the EOL
illuminator3 Sep 11, 2021
801432c
Fix a typo
illuminator3 Sep 11, 2021
46271bb
Add operator option
illuminator3 Sep 12, 2021
5298990
Make colon an operator
illuminator3 Sep 12, 2021
2de58b4
Add super keyword
illuminator3 Sep 12, 2021
22398bc
Add wildcard token
illuminator3 Sep 12, 2021
e56a4ca
Initial commit of the new formatting system
illuminator3 Sep 12, 2021
0f787a5
Split into multiple methods
illuminator3 Sep 13, 2021
a01ba7b
Remove unused things
illuminator3 Sep 13, 2021
2db9a1c
Fix javadoc
illuminator3 Sep 13, 2021
4896983
Move lookahead queue related things to the util package
illuminator3 Sep 13, 2021
ed304bf
Apply spotless
illuminator3 Sep 13, 2021
cb5e09e
Fix javadoc
illuminator3 Sep 13, 2021
571e740
Fix lambdas
illuminator3 Sep 13, 2021
2da98b6
Fix multiarg method declarations
illuminator3 Sep 13, 2021
43de148
Add more test cases
illuminator3 Sep 13, 2021
2b8dd55
Apply spotless
illuminator3 Sep 13, 2021
f56e2e0
Add javadoc
illuminator3 Sep 13, 2021
51e36c3
Fix test
illuminator3 Sep 13, 2021
e5af805
Apply spotless
illuminator3 Sep 13, 2021
84728a6
Change formatting config
illuminator3 Sep 13, 2021
b98da4d
Apply spotless
illuminator3 Sep 13, 2021
b3457c3
Remove useless field
illuminator3 Sep 14, 2021
45296f0
Rename currSec to currentSection
illuminator3 Sep 14, 2021
5f1529c
Better javadoc
illuminator3 Sep 14, 2021
2bf3f5c
Change token names
illuminator3 Sep 14, 2021
6375440
Change switch to if-elseif to satisfy sonar
illuminator3 Sep 14, 2021
905a68a
Apply spotless
illuminator3 Sep 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions formatter/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
plugins {
id 'java'
}

group 'org.togetherjava'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
}

test {
useJUnitPlatform()
}
Loading