diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-16 10:07:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-16 10:07:52 +0800 |
commit | c5729d7ecc564f8eff6df565173a4f5cc6c43cb0 (patch) | |
tree | b0e957a369841a110ea36a301c2144aacd977983 | |
parent | d811920d8b5643b944a7df58d5d75095539242c4 (diff) | |
download | go-tangerine-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.tar.gz go-tangerine-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.tar.zst go-tangerine-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.zip |
comments
-rw-r--r-- | ethchain/asm.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ethchain/asm.go b/ethchain/asm.go index 5f901f8a2..a6c85cb60 100644 --- a/ethchain/asm.go +++ b/ethchain/asm.go @@ -106,6 +106,7 @@ func Disassemble(script []byte) (asm []string) { } func PreProcess(data string) (mainInput, initInput string) { + // Regexp for parsing anything between brackets reg := "\\(\\)\\s*{([\\d\\w\\W\\n\\s]+?)}" mainReg := regexp.MustCompile("main" + reg) initReg := regexp.MustCompile("init" + reg) |