style: spell AST flag masks in binary

This commit is contained in:
2026-10-29 21:25:17 +01:00
parent 9ccb9be01f
commit b832504f10
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ build Honey from this directory:
bro build
```
the bootstrap must support contextual `&[]` literals for mutable slices; collection initialization and reset use these literals instead of a dedicated empty-slice helper. if the installed `bro` predates that feature, use `../brolang/build/brolang build` after rebuilding Bro. zero-sized elements with nonzero logical lengths still use the memory module's specialized storage handling.
the bootstrap must support contextual `&[]` literals for mutable slices and prefixed integer literals (`0b`, `0o`, `0x`); collection initialization uses contextual empty slices and AST flag masks use binary spelling. if the installed `bro` predates either feature, rebuild Bro with `make -C ../brolang build` and use `../brolang/build/brolang build`. zero-sized elements with nonzero logical lengths still use the memory module's specialized storage handling.
run a source file with the interpreter:
+4 -4
View File
@@ -202,10 +202,10 @@ NodeData :: union {
binary_operator BinaryOperator
}
@hide:file file_local_flag u8 :: 1
@hide:file foreign_type_flag u8 :: 2
@hide:file variadic_flag u8 :: 4
@hide:file opaque_flag u8 :: 8
@hide:file file_local_flag u8 :: 0b0001
@hide:file foreign_type_flag u8 :: 0b0010
@hide:file variadic_flag u8 :: 0b0100
@hide:file opaque_flag u8 :: 0b1000
@hide:file
Node :: struct {