Serpent! :-)

This commit is contained in:
obscuren 2014-08-24 00:16:32 +02:00
parent 67af300383
commit cdbc3ecc2a
1 changed files with 9 additions and 9 deletions

View File

@ -2,9 +2,11 @@ package ethutil
import (
"fmt"
"strings"
"github.com/obscuren/mutan"
"github.com/obscuren/mutan/backends"
"strings"
"github.com/obscuren/serpent-go"
)
// General compile function
@ -14,15 +16,13 @@ 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 {