diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-05 00:35:15 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-05 00:35:15 -0600 |
| commit | d835d29e3ec1260569bb98866679110b2d193daa (patch) | |
| tree | 1f11334abd14c1f25f103f65afd498e5e34e14ce | |
| parent | 7c8afa19975517b18553f2eb3007c0e279360299 (diff) | |
| download | nimterop-d835d29e3ec1260569bb98866679110b2d193daa.tar.gz nimterop-d835d29e3ec1260569bb98866679110b2d193daa.zip | |
Fix recursion in type
| -rw-r--r-- | nimterop/grammar.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nimterop/grammar.nim b/nimterop/grammar.nim index 455d2e8..4a949cb 100644 --- a/nimterop/grammar.nim +++ b/nimterop/grammar.nim @@ -50,6 +50,8 @@ proc initGrammar() = if name notin gStateRT.types: gStateRT.types.add(name) + if name == typ: + typ = "object" gStateRT.typeStr &= &" {name}* = {typ}\n" )) |
