Commit cdbc3ecc authored by obscuren's avatar obscuren

Serpent! :-)

parent 67af3003
...@@ -2,9 +2,11 @@ package ethutil ...@@ -2,9 +2,11 @@ package ethutil
import ( import (
"fmt" "fmt"
"strings"
"github.com/obscuren/mutan" "github.com/obscuren/mutan"
"github.com/obscuren/mutan/backends" "github.com/obscuren/mutan/backends"
"strings" "github.com/obscuren/serpent-go"
) )
// General compile function // General compile function
...@@ -14,15 +16,13 @@ func Compile(script string, silent bool) (ret []byte, err error) { ...@@ -14,15 +16,13 @@ func Compile(script string, silent bool) (ret []byte, err error) {
if len(line) > 1 && line[0:2] == "#!" { if len(line) > 1 && line[0:2] == "#!" {
switch line { switch line {
/* case "#!serpent":
case "#!serpent": byteCode, err := serpent.Compile(script)
byteCode, err := serpent.Compile(script) if err != nil {
if err != nil { return nil, err
return nil, err }
}
return byteCode, nil return byteCode, nil
*/
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment