Skip to content

Commit

Permalink
single line string
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Schramka committed Feb 16, 2024
1 parent edb3e25 commit 0b6aae8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FrontEndAst/AcnCreateFromAntlr.fs
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ let private mergeStringType (asn1: Asn1Ast.AstRoot) (t: Asn1Ast.Asn1Type option)
| Acn_Enc_String_uPER _ -> ()
| Acn_Enc_String_uPER_Ascii _ -> ()
| Acn_Enc_String_Ascii_Null_Terminated (_, nullChars) ->
let errMsg = "The termination-pattern defines a character which belongs to the allowed values
of the ASN.1 type. Use another value in the termination-pattern or apply different constraints in the ASN.1 type."
let errMsg = "The termination-pattern defines a character which belongs to the allowed values of the ASN.1 type. Use another value in the termination-pattern or apply different constraints in the ASN.1 type."
match nullChars |> Seq.filter(fun c -> c <> 0uy) |> Seq.tryFind (isCharacterAllowedByAlphabetConstrains cons) with
| Some _ -> raise(SemanticError(acnErrLoc0, errMsg))
| None -> ()
Expand Down

0 comments on commit 0b6aae8

Please sign in to comment.