Created
December 17, 2013 21:09
-
-
Save zah/8012667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ast, parser | |
| {.pragma: libnim, exportc: "nim_$1", dynlib, cdecl.} | |
| proc parse(code: cstring): int {.libnim.} = | |
| var n = parseString($code) | |
| return ord(n != nil) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment