Skip to content

Commit 07939b0

Browse files
committed
Regenerate the parser with iguana 0.1.0-alpha.2
A lambda with a block body is now valid as an operand, for example, in `(int x) -> { } + 1`. This was previously reported as a parse error, which was wrong. Commit 16251d35 in iguana-rs fixed it.
1 parent 6e06300 commit 07939b0

10 files changed

Lines changed: 17398 additions & 25625 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
iguana-version:
1111
description: The released iguana version to generate with
1212
type: string
13-
default: 0.1.0-alpha
13+
default: 0.1.0-alpha.2
1414

1515
permissions:
1616
contents: read

‎Cargo.lock‎

Lines changed: 33 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ path = "src/main.rs"
1313
test = false
1414

1515
[dependencies]
16-
iguana-runtime = "=0.1.0-alpha.1"
17-
clap = { version = "4.5.51", features = ["derive"] }
18-
log = "0.4"
16+
iguana-runtime = { version = "=0.1.0-alpha.2", features = ["cli"] }
1917
rustc-hash = "2.1.1"
2018
serde_json = "1.0"
21-
dhat = "0.3"
22-
pprof = { version = "0.14", features = ["flamegraph"], optional = true }
2319

2420
[features]
25-
dhat-heap = []
2621
debug-trace = ["iguana-runtime/debug-trace"]
27-
profile = ["pprof"]
2822
instrument = ["iguana-runtime/instrument"]
23+
dhat-heap = ["iguana-runtime/dhat-heap"]
24+
profile = ["iguana-runtime/profile"]
2925

3026
[profile.release]
3127
debug = true

‎corpus/openjdk14.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# corpus: openjdk14
2-
# files=49131 ok=48808 amb=0 error=322 ioerror=1
2+
# files=49131 ok=48809 amb=0 error=321 ioerror=1
33
doc/nashorn/source/EvalFile.java ok
44
doc/nashorn/source/EvalScript.java ok
55
doc/nashorn/source/InvokeScriptFunction.java ok
@@ -46767,7 +46767,7 @@ test/langtools/tools/javac/lambda/BadConv03.java ok
4676746767
test/langtools/tools/javac/lambda/BadConv04.java ok
4676846768
test/langtools/tools/javac/lambda/BadExpressionLambda.java ok
4676946769
test/langtools/tools/javac/lambda/BadLambdaExpr.java ok
46770-
test/langtools/tools/javac/lambda/BadLambdaPos.java error Parse error at line 18, column 28: Expected one of ",", ")"
46770+
test/langtools/tools/javac/lambda/BadLambdaPos.java ok
4677146771
test/langtools/tools/javac/lambda/BadMethodCall.java ok
4677246772
test/langtools/tools/javac/lambda/BadMethodCall2.java ok
4677346773
test/langtools/tools/javac/lambda/BadNestedLambda.java ok
@@ -47133,7 +47133,7 @@ test/langtools/tools/javac/lambda/deduplication/Deduplication.java error Parse e
4713347133
test/langtools/tools/javac/lambda/deduplication/DeduplicationTest.java ok
4713447134
test/langtools/tools/javac/lambda/funcInterfaces/Helper.java ok
4713547135
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1.java ok
47136-
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg1.java error Parse error at line 14, column 5: Expected one of ";", ","
47136+
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg1.java error Parse error at line 14, column 5: Expected one of ";", ",", ".", "*", "[", "<", ">", "&", "|", "::", "++", "--", "+", "-", "/", "%", "<<", ">>", ">>>", "<=", ">=", "instanceof", "==", "!=", "^", "&&", "||", "?", AssignmentOperator
4713747137
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg2.java ok
4713847138
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg3.java ok
4713947139
test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest2_SAM1.java ok
@@ -48101,7 +48101,7 @@ test/langtools/tools/javac/switchextra/DefiniteAssignment2.java ok
4810148101
test/langtools/tools/javac/switchextra/MultipleLabelsExpression.java ok
4810248102
test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java ok
4810348103
test/langtools/tools/javac/switchextra/RuleParsingTest.java ok
48104-
test/langtools/tools/javac/switchextra/SwitchArrowBrokenConstant.java error Parse error at line 13, column 23: Expected ","
48104+
test/langtools/tools/javac/switchextra/SwitchArrowBrokenConstant.java error Parse error at line 14, column 9: Expected one of ".", "*", "[", "<", ">", "&", "|", "::", "++", "--", "+", "-", "/", "%", "<<", ">>", ">>>", "<=", ">=", "instanceof", "==", "!=", "^", "&&", "||", "?", AssignmentOperator
4810548105
test/langtools/tools/javac/switchextra/SwitchNoExtraTypes.java ok
4810648106
test/langtools/tools/javac/switchextra/SwitchObject.java ok
4810748107
test/langtools/tools/javac/switchextra/SwitchStatementArrow.java ok

0 commit comments

Comments
 (0)