[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: [cfe-dev] Modifying Token Stream
From: Daniel Dilts <diltsman () gmail ! com>
Date: 2015-08-06 21:23:57
Message-ID: CANgHf=xBzsDf13vnrWub_qS6k4XK54p5i_MZ=r79ej=uuELc3w () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I am attempting to write a FrontendAction that modifies certain tokens
before passing them on to be parsed.
Particularly I want to replace an identifier followed by a comment with
particular content with a string literal.
Does anyone know of an example where something similar is done? I find
plenty of documentation on writing FrontendActions that deal with the AST,
but I am not finding much documentation on dealing with tokens before
generating an AST.
[Attachment #5 (text/html)]
<div dir="ltr"><div>I am attempting to write a FrontendAction that modifies certain \
tokens before passing them on to be parsed.</div><div><br></div><div>Particularly I \
want to replace an identifier followed by a comment with particular content with a \
string literal.</div><div><br></div><div>Does anyone know of an example where \
something similar is done? I find plenty of documentation on writing \
FrontendActions that deal with the AST, but I am not finding much documentation on \
dealing with tokens before generating an AST.</div></div>
[Attachment #6 (text/plain)]
_______________________________________________
cfe-dev mailing list
cfe-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic