-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue with the Parser where if the token at the top of the o…
…perator stack is a parenthesis, that it would attempt to convert it into a function and crash.
- Loading branch information
1 parent
f62c358
commit 2693f05
Showing
4 changed files
with
55 additions
and
24 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
24 changes: 24 additions & 0 deletions
24
app/src/main/java/view/expressionGroupScreen/ErrorPopupView.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,24 @@ | ||
package view.expressionGroupScreen | ||
|
||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.window.Popup | ||
|
||
@Composable | ||
fun ErrorPopupView(title: String, error: Error){ | ||
Popup { | ||
Text( | ||
text = title, | ||
style = MaterialTheme.typography.titleLarge | ||
) | ||
Text(text = error.message ?: "empty error message") | ||
} | ||
} | ||
|
||
@Preview | ||
@Composable | ||
fun ErrorPopupView_Preview(){ | ||
ErrorPopupView(title = "Error Preview", error = Error("Example Error Text")) | ||
} |
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