Commit e454a5e9de2a8a29b1d8a6a20fa87240aec38128
1 parent
0f2cdcd2
SmallTalk changed to Smalltalk :)
Showing
2 changed files
with
4 additions
and
4 deletions
src/squeaknim.nim
@@ -88,8 +88,8 @@ template writeExternalLibrary*() = | @@ -88,8 +88,8 @@ template writeExternalLibrary*() = | ||
88 | "!$1 class methodsFor: 'primitives' stamp: 'SqueakNim'!\C", | 88 | "!$1 class methodsFor: 'primitives' stamp: 'SqueakNim'!\C", |
89 | gPrefix & capitalize(dllName), capitalize(dllName)) | 89 | gPrefix & capitalize(dllName), capitalize(dllName)) |
90 | 90 | ||
91 | -template writeSmallTalkCode*(filename: string) = | ||
92 | - ## You need to invoke this template to write the produced SmallTalk code to | 91 | +template writeSmalltalkCode*(filename: string) = |
92 | + ## You need to invoke this template to write the produced Smalltalk code to | ||
93 | ## a file. | 93 | ## a file. |
94 | static: | 94 | static: |
95 | writeFile(filename, stCode) | 95 | writeFile(filename, stCode) |
@@ -174,7 +174,7 @@ macro exportSt*(body: stmt): stmt = | @@ -174,7 +174,7 @@ macro exportSt*(body: stmt): stmt = | ||
174 | stCode.add(st & "\C\t\"Generated by NimSqueak\"\C\t" & apicall) | 174 | stCode.add(st & "\C\t\"Generated by NimSqueak\"\C\t" & apicall) |
175 | 175 | ||
176 | macro wrapObject*(typ: stmt; wrapFields=false): stmt = | 176 | macro wrapObject*(typ: stmt; wrapFields=false): stmt = |
177 | - ## Declares a SmallTalk wrapper class. | 177 | + ## Declares a Smalltalk wrapper class. |
178 | var t = typ.getType() | 178 | var t = typ.getType() |
179 | if t.typeKind == ntyTypeDesc: | 179 | if t.typeKind == ntyTypeDesc: |
180 | expectKind t, nnkBracketExpr | 180 | expectKind t, nnkBracketExpr |
tests/Test1.nim
@@ -29,4 +29,4 @@ proc foo*(a, b: Vector3, c: int): cstring {.exportSt.} = | @@ -29,4 +29,4 @@ proc foo*(a, b: Vector3, c: int): cstring {.exportSt.} = | ||
29 | result = "x plus y plus c " & $(a.x + b.y + c.float) | 29 | result = "x plus y plus c " & $(a.x + b.y + c.float) |
30 | 30 | ||
31 | # Write the Smalltalk code to file | 31 | # Write the Smalltalk code to file |
32 | -writeSmallTalkCode("Test1.st") | 32 | +writeSmalltalkCode("Test1.st") |