diff --git a/compiler.go b/compiler.go index cbe0a99c..967b0a05 100644 --- a/compiler.go +++ b/compiler.go @@ -63,6 +63,9 @@ type srcMapItem struct { srcPos int } +// Program is an internal, compiled representation of code which is produced by the Compile function. +// This representation is not linked to a runtime in any way and can be used concurrently. +// It is always preferable to use a Program over a string when running code as it skips the compilation step. type Program struct { code []instruction values []Value