Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lisa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
lisa
Merge requests
!53
Front integration
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Front integration
github/fork/SimonGuilloud/front-integration
into
front-integration
Overview
0
Commits
54
Pipelines
0
Changes
2
Merged
Viktor Kuncak
requested to merge
github/fork/SimonGuilloud/front-integration
into
front-integration
2 years ago
Overview
0
Commits
54
Pipelines
0
Changes
2
Expand
Created by: SimonGuilloud
0
0
Merge request reports
Viewing commit
cf382c0f
Prev
Next
Show latest version
2 files
+
19
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cf382c0f
Support printing 'and' and 'or' ConnectorFormulas with more than two arguments
· cf382c0f
Katja Goltsova
authored
2 years ago
lisa-utils/src/main/scala/lisa/utils/Parser.scala
+
9
−
2
Options
@@ -328,8 +328,15 @@ object Parser {
or
is
LeftAssociative
)(
(
l
,
conn
,
r
)
=>
ConnectorFormula
(
conn
,
Seq
(
l
,
r
)),
{
case
ConnectorFormula
(
conn
,
Seq
(
l
,
r
))
=>
(
l
,
conn
,
r
)
{
case
ConnectorFormula
(
conn
,
Seq
(
l
,
r
))
=>
(
l
,
conn
,
r
)
case
ConnectorFormula
(
conn
,
l
+:
rest
)
if
rest
.
nonEmpty
=>
val
last
=
rest
.
last
val
leftSide
=
rest
.
dropRight
(
1
)
// parser only knows about connector formulas of two arguments, so we unfold the formula of many arguments to
// multiple nested formulas of two arguments
(
leftSide
.
foldLeft
(
l
)((
f1
,
f2
)
=>
ConnectorFormula
(
conn
,
Seq
(
f1
,
f2
))),
conn
,
last
)
}
)
Loading