MCPcopy Create free account
hub / github.com/djhworld/simple-computer / stripEmptyGroups

Function stripEmptyGroups

asm/parser.go:97–105  ·  view source on GitHub ↗
(input []string)

Source from the content-addressed store, hash-verified

95}
96
97func stripEmptyGroups(input []string) []string {
98 result := []string{}
99 for _, t := range input {
100 if t != "" {
101 result = append(result, t)
102 }
103 }
104 return result
105}
106
107func parseInstruction(line string) (Instruction, error) {
108 tokens := INSTRUCTION.FindStringSubmatch(line)

Callers 1

parseInstructionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected