-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to single expression interpreter
- Loading branch information
Zhirkevich Alexander Y
authored and
Zhirkevich Alexander Y
committed
Jul 26, 2024
1 parent
e5214d5
commit 47db2f1
Showing
10 changed files
with
112 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
...thub/alexzhirkevich/compottie/internal/animation/expressions/MainExpressionInterpreter.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
compottie/src/commonTest/kotlin/expressions/global/SyntaxExpressionsTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package expressions.global | ||
|
||
import expressions.assertSimpleExprEquals | ||
import expressions.executeExpression | ||
import kotlin.test.Test | ||
import kotlin.test.assertFails | ||
|
||
class SyntaxExpressionsTest { | ||
|
||
@Test | ||
fun newline_property() { | ||
""" | ||
Math | ||
.imul(3,4) | ||
.toString() | ||
""".trimIndent().assertSimpleExprEquals("12") | ||
|
||
""" | ||
Math | ||
.imul(3,4) | ||
.toString() | ||
""".trimIndent().assertSimpleExprEquals("12") | ||
|
||
""" | ||
Math | ||
.imul(3,4) | ||
.toString() | ||
; | ||
""".trimIndent().assertSimpleExprEquals("12") | ||
|
||
|
||
assertFails { | ||
""" | ||
Math | ||
.imul(3,4); | ||
.toString() | ||
""".trimIndent().executeExpression() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters