Commit c5729d7e authored by obscuren's avatar obscuren

comments

parent d811920d
...@@ -106,6 +106,7 @@ func Disassemble(script []byte) (asm []string) { ...@@ -106,6 +106,7 @@ func Disassemble(script []byte) (asm []string) {
} }
func PreProcess(data string) (mainInput, initInput string) { func PreProcess(data string) (mainInput, initInput string) {
// Regexp for parsing anything between brackets
reg := "\\(\\)\\s*{([\\d\\w\\W\\n\\s]+?)}" reg := "\\(\\)\\s*{([\\d\\w\\W\\n\\s]+?)}"
mainReg := regexp.MustCompile("main" + reg) mainReg := regexp.MustCompile("main" + reg)
initReg := regexp.MustCompile("init" + reg) initReg := regexp.MustCompile("init" + reg)
......
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