Open kfl opened 2 years ago
The Instruction type in Ebpf.Asm with an annotation construction. For instance:
Instruction
Ebpf.Asm
data Instruction = ... | Annotation String
Alternatively Instruction could be parameterised with the kind of annotations:
data Instruction anno = ... | Annotation anno
Likewise the concrete syntax should support annotations. For instance by using the prefix ;;*:
;;*
; a normal comment ;;* an annotation comment ;;* assume { r1 != 0 } add r0 r1 exit
The
Instruction
type inEbpf.Asm
with an annotation construction. For instance:Alternatively
Instruction
could be parameterised with the kind of annotations:Likewise the concrete syntax should support annotations. For instance by using the prefix
;;*
: