@@ -37,7 +37,7 @@ type CellNumber struct {
3737}
3838
3939func (c CellNumber ) Execute (vm * VirtualMachine ) error {
40- return fmt .Errorf ("Cannot directly execute a number" )
40+ return fmt .Errorf ("cannot directly execute a number" )
4141}
4242
4343func (c CellNumber ) String () string {
@@ -52,7 +52,7 @@ func (c CellNumber) AddToList(u *Ulp) error {
5252}
5353
5454func (c CellNumber ) BuildExecution (u * Ulp ) (string , error ) {
55- return "" , fmt .Errorf ("Cannot directly execute number" )
55+ return "" , fmt .Errorf ("cannot directly execute number" )
5656}
5757
5858func (c CellNumber ) OutputReference (u * Ulp ) (string , error ) {
@@ -75,19 +75,19 @@ func (c CellAddress) Execute(vm *VirtualMachine) error {
7575 switch w := c .Entry .Word .(type ) {
7676 case * WordForth :
7777 if c .Offset >= len (w .Cells ) {
78- return fmt .Errorf ("Trying to get data from outside of allocated data. " )
78+ return fmt .Errorf ("trying to get data from outside of allocated data" )
7979 }
8080 if c .Entry .Flag .Data {
8181 return vm .Stack .Push (w .Cells [c .Offset ])
8282 }
8383 return w .ExecuteOffset (vm , c .Offset )
8484 case * WordPrimitive :
8585 if c .Offset != 0 {
86- return fmt .Errorf ("Cannot execute a primitive word at an offset. " )
86+ return fmt .Errorf ("cannot execute a primitive word at an offset" )
8787 }
8888 return w .Execute (vm )
8989 default :
90- return fmt .Errorf ("Cannot execute word type %t" , c .Entry .Word )
90+ return fmt .Errorf ("cannot execute word type %t" , c .Entry .Word )
9191 }
9292}
9393
@@ -108,7 +108,7 @@ func (c CellAddress) BuildExecution(u *Ulp) (string, error) {
108108 case UlpCompileTargetSubroutine :
109109 return fmt .Sprintf ("jump %s" , name ), nil
110110 default :
111- return "" , fmt .Errorf ("Unknown compile target %d, please file a bug report" , u .compileTarget )
111+ return "" , fmt .Errorf ("unknown compile target %d, please file a bug report" , u .compileTarget )
112112 }
113113}
114114
@@ -200,12 +200,12 @@ func (c CellLiteral) BuildExecution(u *Ulp) (string, error) {
200200 case UlpCompileTargetSubroutine :
201201 return fmt .Sprintf ("move r0, %s\r \n %sjump __add_to_stack" , name , safeCall ()), nil
202202 default :
203- return "" , fmt .Errorf ("Unknown compile target %d, please file a bug report" , u .compileTarget )
203+ return "" , fmt .Errorf ("unknown compile target %d, please file a bug report" , u .compileTarget )
204204 }
205205}
206206
207207func (c CellLiteral ) OutputReference (u * Ulp ) (string , error ) {
208- return "" , fmt .Errorf ("Cannot refer to a CellLiteral, please file a bug report" )
208+ return "" , fmt .Errorf ("cannot refer to a CellLiteral, please file a bug report" )
209209}
210210
211211func (c CellLiteral ) IsRecursive (check * WordForth ) bool {
@@ -232,7 +232,7 @@ func (c *CellDestination) BuildExecution(u *Ulp) (string, error) {
232232}
233233
234234func (c * CellDestination ) OutputReference (u * Ulp ) (string , error ) {
235- return "" , fmt .Errorf ("Cannot refer to a destination, please file a bug report" )
235+ return "" , fmt .Errorf ("cannot refer to a destination, please file a bug report" )
236236}
237237
238238func (c * CellDestination ) IsRecursive (check * WordForth ) bool {
@@ -281,12 +281,12 @@ func (c *CellBranch) BuildExecution(u *Ulp) (string, error) {
281281 case UlpCompileTargetSubroutine :
282282 return fmt .Sprintf ("move r2, %s\r \n jump r2" , c .dest .name (u )), nil
283283 default :
284- return "" , fmt .Errorf ("Unknown compile target %d, please file a bug report" , u .compileTarget )
284+ return "" , fmt .Errorf ("unknown compile target %d, please file a bug report" , u .compileTarget )
285285 }
286286}
287287
288288func (c * CellBranch ) OutputReference (u * Ulp ) (string , error ) {
289- return "" , fmt .Errorf ("Cannot refer to a branch, please file a bug report" )
289+ return "" , fmt .Errorf ("cannot refer to a branch, please file a bug report" )
290290}
291291
292292func (c * CellBranch ) IsRecursive (check * WordForth ) bool {
@@ -330,12 +330,12 @@ func (c *CellBranch0) BuildExecution(u *Ulp) (string, error) {
330330 case UlpCompileTargetSubroutine :
331331 return fmt .Sprintf ("move r1, %s\r \n %sjump __branch_if" , c .dest .name (u ), safeCall ()), nil
332332 default :
333- return "" , fmt .Errorf ("Unknown compile target %d, please file a bug report" , u .compileTarget )
333+ return "" , fmt .Errorf ("unknown compile target %d, please file a bug report" , u .compileTarget )
334334 }
335335}
336336
337337func (c * CellBranch0 ) OutputReference (u * Ulp ) (string , error ) {
338- return "" , fmt .Errorf ("Cannot refer to a conditional branch, please file a bug report" )
338+ return "" , fmt .Errorf ("cannot refer to a conditional branch, please file a bug report" )
339339}
340340
341341func (c * CellBranch0 ) IsRecursive (check * WordForth ) bool {
@@ -353,7 +353,7 @@ type CellTailCall struct {
353353}
354354
355355func (c * CellTailCall ) Execute (vm * VirtualMachine ) error {
356- return fmt .Errorf ("Cannot directly execute a tail call, please file a bug repot" )
356+ return fmt .Errorf ("cannot directly execute a tail call, please file a bug repot" )
357357}
358358
359359func (c * CellTailCall ) AddToList (u * Ulp ) error {
@@ -369,12 +369,12 @@ func (c *CellTailCall) BuildExecution(u *Ulp) (string, error) {
369369 // put the address after the docol
370370 return fmt .Sprintf ("move r2, %s\r \n jump r2" , c .dest .Entry .BodyLabel ()), nil
371371 default :
372- return "" , fmt .Errorf ("Unknown compile target %d, please file a bug report" , u .compileTarget )
372+ return "" , fmt .Errorf ("unknown compile target %d, please file a bug report" , u .compileTarget )
373373 }
374374}
375375
376376func (c * CellTailCall ) OutputReference (u * Ulp ) (string , error ) {
377- return "" , fmt .Errorf ("Cannot refer to a tail call, please file a bug report" )
377+ return "" , fmt .Errorf ("cannot refer to a tail call, please file a bug report" )
378378}
379379
380380func (c * CellTailCall ) IsRecursive (check * WordForth ) bool {
0 commit comments