Allow parsing from String on top of FILE* #15

nddrylliog opened this Issue Nov 28, 2012 · 0 comments


None yet
1 participant

nddrylliog commented Nov 28, 2012

Currently nagaqueen (and thus, (lib)rock) only allows parsing from a file, which means anything that uses rock's AST would first need to write to a temporary file, then ask librock to parse it, and that kinda sucks.

The main problems are here in nq_parse (this only takes a path to a file) and of couse in yyInput:

If we could have some additional state that tells us if we're reading from a file or from memory, it'd be possible to read in-memory ooc code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment