Hey folks, I'm trying to figure out how to capture a range of source text 
in the parser. Ideally the container of the source text is something that 
can easily be turned into a heap string.

int start = peek_position();
ParseAssignmentExpression();
int end = end_position();
auto source = somehow_get_source_text(start, end);

Any advice is appreciated.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/f6e9e16a-0335-4005-912c-069009492a0an%40googlegroups.com.

Reply via email to