From 1360be3b26a4fe8a3ece98440df5a82253ac23ba Mon Sep 17 00:00:00 2001 From: Hrutvik Kanabar Date: Tue, 25 Oct 2022 10:14:37 +0000 Subject: prog: introduce new Base64 syntax for data The new "$..." syntax is read as a Base64 encoding binary data. Note that users cannot specify the size of the Base64 syntax using the `"..."/` notation. When serialising programs to human-readable form, only compressed types (determined by `IsCompressed()`) are represented using the new Base64 notation. Also add a couple of serialisation tests, checking behaviour for compressed and non-compressed types. --- docs/program_syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/program_syntax.md') diff --git a/docs/program_syntax.md b/docs/program_syntax.md index 2b1fb3c0d..12bea732a 100644 --- a/docs/program_syntax.md +++ b/docs/program_syntax.md @@ -31,7 +31,7 @@ resource-arg = variable ["/" hex-integer] ["+" hex-integer] result-arg = "<" variable "=>" arg pointer-arg = "&" pointer-arg-addr ["=ANY"] "=" arg pointer-arg-addr = "AUTO" | "(" pointer-addr ["/" region-size] ")" -string-arg = "'" escaped-string "'" | "\"" escaped-string "\"" +string-arg = "'" escaped-string "'" | "\"" escaped-string "\"" | "\"$" escaped-string "\"" struct-arg = "{" [arg ["," arg]*] "}" array-arg = "[" [arg ["," arg]*] "]" union-arg = "@" field-name ["=" arg] -- cgit mrf-deployment