Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Add STEP242 typed parameter value parsing and unwrapping

Yuechen Li1330e7ec0729
diff --git a/Aetheris.Kernel.Core.Tests/Step242/Step242TypedParameterValueTests.cs b/Aetheris.Kernel.Core.Tests/Step242/Step242TypedParameterValueTests.cs
new file mode 100644
index 00000000..dce51cd8
--- /dev/null
+++ b/Aetheris.Kernel.Core.Tests/Step242/Step242TypedParameterValueTests.cs
@@ -0,0 +1,62 @@
+using System.Text;
+using Aetheris.Kernel.Core.Step242;
+
+namespace Aetheris.Kernel.Core.Tests.Step242;
+
+public sealed class Step242TypedParameterValueTests
+{
+ [Fact]
+ public void StepParser_ParsesTypedParameterValues_FromFixture()
+ {
+ var text = LoadFixture("testdata/step242/syntax-robustness/typed-parameter-values.step");
+
+ var parseResult = Step242SubsetParser.Parse(text);
+
+ Assert.True(parseResult.IsSuccess);
+
+ var uncertaintyEntity = Assert.Single(parseResult.Value.Entities, e => e.Id == 16);
+ var typedMeasure = Assert.IsType<Step242TypedValue>(uncertaintyEntity.Arguments[0]);
+ Assert.Equal("LENGTH_MEASURE", typedMeasure.Name);
+ Assert.Single(typedMeasure.Arguments);
+
+ var lengthWithUnit = Assert.Single(parseResult.Value.Entities, e => e.Id == 28);
+ var outerTyped = Assert.IsType<Step242TypedValue>(lengthWithUnit.Arguments[0]);
+ Assert.Equal("LENGTH_MEASURE", outerTyped.Name);
+ Assert.Single(outerTyped.Arguments);
+ }
+
+ [Fact]
+ public void Step242SubsetDecoder_UnwrapsTypedNumericValue_ForSurfaceRadius()
+ {
+ var text = LoadFixture("testdata/step242/syntax-robustness/typed-parameter-values.step");
+ var parseResult = Step242SubsetParser.Parse(text);
+ Assert.True(parseResult.IsSuccess);
+
+ var sphericalSurface = Assert.Single(parseResult.Value.Entities, e => e.Id == 26);
+ var radiusArg = Assert.IsType<Step242TypedValue>(sphericalSurface.Arguments[2]);
+ Assert.Equal("LENGTH_MEASURE", radiusArg.Name);
+
+ var decodeResult = Step242SubsetDecoder.ReadSphericalSurface(parseResult.Value, sphericalSurface);
+
+ Assert.True(decodeResult.IsSuccess);
+ Assert.Equal(1d, decodeResult.Value.Radius, 6);
+ }
+
+ [Fact]
+ public void ImportBody_FailsWithTypedValueSyntaxBucket_ForMalformedTypedValue()
+ {
+ const string text = "DATA;#1=ITEM(LENGTH_MEASURE(1.0";
+
+ var result = Step242Importer.ImportBody(text);
+
+ Assert.False(result.IsSuccess);
+ Assert.NotEmpty(result.Diagnostics);
+ Assert.Equal("Importer.StepSyntax.TypedValue", result.Diagnostics[0].Source);
+ }
+
+ private static string LoadFixture(string relativePath)
+ {
+ var path = Path.Combine(Step242CorpusManifestRunner.RepoRoot(), relativePath.Replace('/', Path.DirectorySeparatorChar));
+ return File.ReadAllText(path, Encoding.UTF8);
+ }
+}
diff --git a/Aetheris.Kernel.Core/Step242/Step242SubsetDecoder.cs b/Aetheris.Kernel.Core/Step242/Step242SubsetDecoder.cs
index 404123c1..ccdb154f 100644
--- a/Aetheris.Kernel.Core/Step242/Step242SubsetDecoder.cs
+++ b/Aetheris.Kernel.Core/Step242/Step242SubsetDecoder.cs
@@ -515,7 +515,13 @@ internal static class Step242SubsetDecoder
private static KernelResult<double> ReadNumber(Step242Value value, string context, int entityId)
{
- if (value is not Step242NumberValue number)
+ var unwrappedValueResult = UnwrapTypedValue(value, context, "Importer.StepSyntax.TypedValue");
+ if (!unwrappedValueResult.IsSuccess)
+ {
+ return KernelResult<double>.Failure(unwrappedValueResult.Diagnostics);
+ }
+
+ if (unwrappedValueResult.Value is not Step242NumberValue number)
{
return FailureNumber($"{context}: expected numeric value.", $"Entity:{entityId}");
}
@@ -530,7 +536,13 @@ internal static class Step242SubsetDecoder
private static KernelResult<double> ReadNumberCode(Step242Value value, string context, string source)
{
- if (value is not Step242NumberValue number)
+ var unwrappedValueResult = UnwrapTypedValue(value, context, "Importer.StepSyntax.TypedValue");
+ if (!unwrappedValueResult.IsSuccess)
+ {
+ return KernelResult<double>.Failure(unwrappedValueResult.Diagnostics);
+ }
+
+ if (unwrappedValueResult.Value is not Step242NumberValue number)
{
return Failure<double>(KernelDiagnosticCode.InvalidArgument, $"{context}: expected numeric value.", source);
}
@@ -543,6 +555,24 @@ internal static class Step242SubsetDecoder
return KernelResult<double>.Success(number.Value);
}
+ private static KernelResult<Step242Value> UnwrapTypedValue(Step242Value value, string context, string source)
+ {
+ if (value is not Step242TypedValue typed)
+ {
+ return KernelResult<Step242Value>.Success(value);
+ }
+
+ if (typed.Arguments.Count != 1)
+ {
+ return Failure<Step242Value>(
+ KernelDiagnosticCode.ValidationFailed,
+ $"{context}: typed value '{typed.Name}' requires exactly one argument.",
+ source);
+ }
+
+ return UnwrapTypedValue(typed.Arguments[0], context, source);
+ }
+
private static KernelResult<Step242EntityReference> FailureRef(string message, string source) => Failure<Step242EntityReference>(message, source);
private static KernelResult<IReadOnlyList<Step242EntityReference>> FailureList(string message, string source) => Failure<IReadOnlyList<Step242EntityReference>>(message, source);
diff --git a/Aetheris.Kernel.Core/Step242/Step242SubsetParser.cs b/Aetheris.Kernel.Core/Step242/Step242SubsetParser.cs
index 96482cac..187ff93a 100644
--- a/Aetheris.Kernel.Core/Step242/Step242SubsetParser.cs
+++ b/Aetheris.Kernel.Core/Step242/Step242SubsetParser.cs
@@ -61,6 +61,7 @@ internal static class Step242SubsetParser
private static KernelResult<Step242ParsedDocument> Failure(string message, string source)
{
var code = string.Equals(source, "Importer.StepSyntax.ComplexInstance", StringComparison.Ordinal)
+ || string.Equals(source, "Importer.StepSyntax.TypedValue", StringComparison.Ordinal)
? KernelDiagnosticCode.ValidationFailed
: KernelDiagnosticCode.InvalidArgument;
@@ -238,7 +239,7 @@ internal static class Step242SubsetParser
throw Error("Unable to recover statement boundary before end of text.", "Parser.Semantics");
}
- private List<Step242Value> ReadArgumentList()
+ private List<Step242Value> ReadArgumentList(string sourceTag = "Parser.Lexer")
{
var values = new List<Step242Value>();
SkipWhitespace();
@@ -255,7 +256,7 @@ internal static class Step242SubsetParser
if (End)
{
- throw Error("Unexpected end of text in argument list.");
+ throw Error("Unexpected end of text in argument list.", sourceTag);
}
var next = text[_index++];
@@ -266,7 +267,7 @@ internal static class Step242SubsetParser
if (next != ',')
{
- throw Error($"Expected ',' or ')' in argument list, found '{next}'.");
+ throw Error($"Expected ',' or ')' in argument list, found '{next}'.", sourceTag);
}
SkipWhitespace();
@@ -293,10 +294,28 @@ internal static class Step242SubsetParser
'(' => ReadList(),
'.' => TryPeekNext(out var next) && char.IsDigit(next) ? ReadNumber() : ReadEnumOrLogical(),
'+' or '-' or >= '0' and <= '9' => ReadNumber(),
+ _ when IsIdentifierStart(c) => ReadTypedValue(),
_ => throw Error($"Unsupported value token '{c}'.")
};
}
+ private Step242Value ReadTypedValue()
+ {
+ const string typedValueSource = "Importer.StepSyntax.TypedValue";
+ var name = ReadIdentifier();
+ name = name.ToUpperInvariant();
+
+ SkipWhitespace();
+ if (End || Peek() != '(')
+ {
+ throw Error("Typed parameter value must include parenthesized arguments.", typedValueSource);
+ }
+
+ Expect('(');
+ var args = ReadArgumentList(typedValueSource);
+ return new Step242TypedValue(name, args);
+ }
+
private Step242Value ReadReference()
{
Expect('#');
@@ -621,6 +640,8 @@ internal sealed record Step242EnumValue(string Value) : Step242Value;
internal sealed record Step242ListValue(IReadOnlyList<Step242Value> Items) : Step242Value;
+internal sealed record Step242TypedValue(string Name, IReadOnlyList<Step242Value> Arguments) : Step242Value;
+
internal sealed record Step242OmittedValue : Step242Value
{
public static Step242OmittedValue Instance { get; } = new();
diff --git a/docs/support-matrix-step242-v0.md b/docs/support-matrix-step242-v0.md
index 6d5d847e..c586a69b 100644
--- a/docs/support-matrix-step242-v0.md
+++ b/docs/support-matrix-step242-v0.md
@@ -8,6 +8,7 @@ Aetheris STEP242 v0 is intentionally narrow and deterministic.
- Backend-authoritative flow: import -> render -> canonical export (+ SHA256).
- Deterministic diagnostics: stable `(code, source, messagePrefix)` for expected fail cases.
- STEP Part 21 complex entity-instance assignments are accepted for parser/decoder context use (for example `#5=(GEOMETRIC_REPRESENTATION_CONTEXT(...)...REPRESENTATION_CONTEXT(...));`).
+- STEP Part 21 typed parameter values are supported in value position with deterministic normalization (`IDENT(...)` parsed as uppercase identifier + argument list), including common nested wrappers such as `LENGTH_MEASURE(...)` and `LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(...),#...)`.
## Supported entity families (Tier1)
@@ -29,6 +30,7 @@ Aetheris STEP242 v0 is intentionally narrow and deterministic.
- NURBS / B-spline / healing workflows.
- Toroidal and other exotic analytic surface support.
- Any modeling/editor feature expansion in the Viewer tab.
+- Typed wrapper decoding is intentionally limited in v0: primitive readers currently unwrap single-argument typed values; wrappers with unexpected arity fail deterministically via `Importer.StepSyntax.TypedValue`.
## Corpus and CI gate
diff --git a/testdata/step242/manifests/nist.v0.report.json b/testdata/step242/manifests/nist.v0.report.json
index 9c405162..8b42865e 100644
--- a/testdata/step242/manifests/nist.v0.report.json
+++ b/testdata/step242/manifests/nist.v0.report.json
@@ -3,12 +3,12 @@
"fileId": "testdata_step242_nist_CTC_nist_ctc_01_asme1_ap242-e1",
"path": "testdata/step242/nist/CTC/nist_ctc_01_asme1_ap242-e1.stp",
"sizeBytes": 391739,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027S\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Entity:764",
+ "messagePrefix": "ADVANCED_FACE surface"
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -27,12 +27,12 @@
"fileId": "testdata_step242_nist_CTC_nist_ctc_02_asme1_ap242-e2",
"path": "testdata/step242/nist/CTC/nist_ctc_02_asme1_ap242-e2.stp",
"sizeBytes": 1958442,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Entity:2513",
+ "messagePrefix": "ADVANCED_FACE surface"
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -51,12 +51,12 @@
"fileId": "testdata_step242_nist_CTC_nist_ctc_03_asme1_ap242-e2",
"path": "testdata/step242/nist/CTC/nist_ctc_03_asme1_ap242-e2.stp",
"sizeBytes": 667521,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027S\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Entity:1331",
+ "messagePrefix": "ADVANCED_FACE surface"
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -75,12 +75,12 @@
"fileId": "testdata_step242_nist_CTC_nist_ctc_04_asme1_ap242-e1",
"path": "testdata/step242/nist/CTC/nist_ctc_04_asme1_ap242-e1.stp",
"sizeBytes": 1265846,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -99,12 +99,12 @@
"fileId": "testdata_step242_nist_CTC_nist_ctc_05_asme1_ap242-e1",
"path": "testdata/step242/nist/CTC/nist_ctc_05_asme1_ap242-e1.stp",
"sizeBytes": 863826,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027N\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -123,12 +123,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_06_asme1_ap242-e2",
"path": "testdata/step242/nist/FTC/nist_ftc_06_asme1_ap242-e2.stp",
"sizeBytes": 1960222,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027P\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -147,12 +147,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_07_asme1_ap242-e2",
"path": "testdata/step242/nist/FTC/nist_ftc_07_asme1_ap242-e2.stp",
"sizeBytes": 1459346,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -171,12 +171,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_08_asme1_ap242-e1-tg",
"path": "testdata/step242/nist/FTC/nist_ftc_08_asme1_ap242-e1-tg.stp",
"sizeBytes": 2120356,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027P\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.TopologyRoot",
+ "messagePrefix": "Missing MANIFOLD_SOLID_BREP root entity."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -195,12 +195,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_08_asme1_ap242-e2",
"path": "testdata/step242/nist/FTC/nist_ftc_08_asme1_ap242-e2.stp",
"sizeBytes": 4658022,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027S\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -219,12 +219,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_09_asme1_ap242-e1",
"path": "testdata/step242/nist/FTC/nist_ftc_09_asme1_ap242-e1.stp",
"sizeBytes": 6057450,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Entity:82",
+ "messagePrefix": "ADVANCED_FACE surface"
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -243,12 +243,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_10_asme1_ap242-e2",
"path": "testdata/step242/nist/FTC/nist_ftc_10_asme1_ap242-e2.stp",
"sizeBytes": 1855829,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -267,12 +267,12 @@
"fileId": "testdata_step242_nist_FTC_nist_ftc_11_asme1_ap242-e2",
"path": "testdata/step242/nist/FTC/nist_ftc_11_asme1_ap242-e2.stp",
"sizeBytes": 1920822,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -291,12 +291,12 @@
"fileId": "testdata_step242_nist_STC_nist_stc_06_asme1_ap242-e3",
"path": "testdata/step242/nist/STC/nist_stc_06_asme1_ap242-e3.stp",
"sizeBytes": 993459,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -315,12 +315,12 @@
"fileId": "testdata_step242_nist_STC_nist_stc_07_asme1_ap242-e3",
"path": "testdata/step242/nist/STC/nist_stc_07_asme1_ap242-e3.stp",
"sizeBytes": 1927905,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027P\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -339,12 +339,12 @@
"fileId": "testdata_step242_nist_STC_nist_stc_08_asme1_ap242-e3",
"path": "testdata/step242/nist/STC/nist_stc_08_asme1_ap242-e3.stp",
"sizeBytes": 2239112,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027S\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -363,12 +363,12 @@
"fileId": "testdata_step242_nist_STC_nist_stc_09_asme1_ap242-e3",
"path": "testdata/step242/nist/STC/nist_stc_09_asme1_ap242-e3.stp",
"sizeBytes": 5237528,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Entity:1096",
+ "messagePrefix": "ADVANCED_FACE surface"
},
"diagnosticCount": 1,
"exceptionEscaped": false,
@@ -387,12 +387,12 @@
"fileId": "testdata_step242_nist_STC_nist_stc_10_asme1_ap242-e2",
"path": "testdata/step242/nist/STC/nist_stc_10_asme1_ap242-e2.stp",
"sizeBytes": 4807322,
- "status": "parseFail",
- "firstFailureLayer": "parser",
+ "status": "importFail",
+ "firstFailureLayer": "importer-topology",
"firstDiagnostic": {
- "code": "InvalidArgument",
- "source": "Parser.Lexer",
- "messagePrefix": "Unsupported value token \u0027L\u0027. (position *)."
+ "code": "NotImplemented",
+ "source": "Importer.EntityFamily",
+ "messagePrefix": "Entity family \u0027TOROIDAL_SURFACE\u0027 is unsupported in M23 import subset."
},
"diagnosticCount": 1,
"exceptionEscaped": false,
diff --git a/testdata/step242/syntax-robustness/typed-parameter-values.step b/testdata/step242/syntax-robustness/typed-parameter-values.step
new file mode 100644
index 00000000..5902db2e
--- /dev/null
+++ b/testdata/step242/syntax-robustness/typed-parameter-values.step
@@ -0,0 +1,23 @@
+ISO-10303-21;
+HEADER;
+FILE_DESCRIPTION(('typed parameter parser fixture'),'2;1');
+FILE_NAME('typed-parameter-values.step','2026-03-05T00:00:00',('Aetheris'),('Aetheris'),'','Aetheris','');
+FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF'));
+ENDSEC;
+DATA;
+#5=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#16))GLOBAL_UNIT_ASSIGNED_CONTEXT((#45,#46,#47))REPRESENTATION_CONTEXT('NONE','WORKSPACE'));
+#13=ADVANCED_BREP_SHAPE_REPRESENTATION('0430200200',(#24,#25),#5);
+#16=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-06),#45,'DISTANCE_ACCURACY_VALUE','');
+#28=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0),#45);
+#45=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
+#46=(PLANE_ANGLE_UNIT()NAMED_UNIT(*)SI_UNIT($,.RADIAN.));
+#47=(SOLID_ANGLE_UNIT()NAMED_UNIT(*)SI_UNIT($,.STERADIAN.));
+#24=ADVANCED_FACE((),#26,.T.);
+#25=ADVANCED_FACE((),#26,.T.);
+#26=SPHERICAL_SURFACE('',#27,LENGTH_MEASURE(1.0));
+#27=AXIS2_PLACEMENT_3D('',#31,#29,#30);
+#31=CARTESIAN_POINT('',(0.,0.,0.));
+#29=DIRECTION('',(0.,0.,1.));
+#30=DIRECTION('',(1.,0.,0.));
+ENDSEC;
+END-ISO-10303-21;