|
|
|
@ -4,7 +4,6 @@ import ( |
|
|
|
|
"fmt" |
|
|
|
|
"github.com/obscuren/mutan" |
|
|
|
|
"github.com/obscuren/mutan/backends" |
|
|
|
|
"github.com/obscuren/serpent-go" |
|
|
|
|
"strings" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -15,13 +14,15 @@ func Compile(script string, silent bool) (ret []byte, err error) { |
|
|
|
|
|
|
|
|
|
if len(line) > 1 && line[0:2] == "#!" { |
|
|
|
|
switch line { |
|
|
|
|
case "#!serpent": |
|
|
|
|
byteCode, err := serpent.Compile(script) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
/* |
|
|
|
|
case "#!serpent": |
|
|
|
|
byteCode, err := serpent.Compile(script) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return byteCode, nil |
|
|
|
|
return byteCode, nil |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|