diff options
Diffstat (limited to 'src/cljcc/parser.clj')
| -rw-r--r-- | src/cljcc/parser.clj | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cljcc/parser.clj b/src/cljcc/parser.clj index 3c54012..860fcd5 100644 --- a/src/cljcc/parser.clj +++ b/src/cljcc/parser.clj @@ -17,6 +17,9 @@ keyword = #'int\\b' | #'return\\b' | #'void\\b'" :auto-whitespace whitespace)) +(defn parseable? [result] + (not (insta/failure? result))) + (defn parse [source] (c-parser source)) |
