search for: antlr

Displaying 20 results from an estimated 81 matches for "antlr".

2009 Jul 11
2
[LLVMdev] ANTLR?
...compiler IR is also somehow insufficient to write a code generator? --Vikram Associate Professor, Computer Science University of Illinois at Urbana-Champaign http://llvm.org/~vadve On Jul 11, 2009, at 3:00 PM, Granville Barnett wrote: > Hi, > > I've not got any experience using ANTLR to parse C++, however, you > will find that there only exists a C code generator for ANTLR and > NOT a C++ one. Over the years numerous people have requested a C++ > code generation template but alas there is still only a C one. Just > a heads up. > > Granville > > &...
2009 Jul 11
0
[LLVMdev] ANTLR?
When you create a parser via ANTLR you specify the output language of the resulting recursive descent parser, at the moment there exists no C++ output template to my knowledge, thus you would have to generate the parser as C code for which a template exists. The runtime support should be there, at least partially but it won't u...
2009 Jul 11
10
[LLVMdev] ANTLR?
We are looking for an open source C++ parser other than g++ if possible. Clang would be great but its C++ support is still some way away and we need something that works or nearly works now. Does anyone have any experience with ANTLR for parsing C++ and for extending their C++ parser? Any other feedback on ANTLR in general would be welcome too. Thanks, --Vikram Associate Professor, Computer Science University of Illinois at Urbana-Champaign http://llvm.org/~vadve P.S. Sorry for the spam. I know this question is not di...
2009 Jul 11
0
[LLVMdev] ANTLR?
Hi, I've not got any experience using ANTLR to parse C++, however, you will find that there only exists a C code generator for ANTLR and NOT a C++ one. Over the years numerous people have requested a C++ code generation template but alas there is still only a C one. Just a heads up. Granville 2009/7/11 Vikram S. Adve <vadve at cs.uiuc....
2009 Feb 02
1
sieve 0.1.2 problem with address and :regex
I'm getting a core dump with the following script: require [ "fileinto", "regex", "variables" ]; if address :domain :regex ["Reply-To", "Sender", "To", "Cc"] "antlr.org|mailman.unixodbc.org|research.att.com|wireshark.org" { if address :regex ["Reply-To", "Sender", "To", "Cc"] ["([^-@]*)-([^-@]*)(-bounces)?@[^:space:,]*"] { fileinto "1: ${1} 2: ${2} 3: ${3} 4: ${4} 5: ${5} 6: ${6} 7: ${7} 8: ${...
2011 Jan 24
3
[LLVMdev] LLVM grammar for ANTLR
Has anyone written a grammar for LLVM for ANTLR. I mean an ANTLR grammar that parses LLVM instructions. Is an LLVM grammar available for any other parsing tool? Surinder
2009 Jan 21
1
Sieve regex match problem
...sages to corresponding folders. I'm using sieve-test to try and understand what is happening. The sieve script is: require [ "fileinto", "regex", "variables" ]; if header :regex ["Sender"] ["(.*>[ \\t]*,?[ \\t]*)?([^-@]*)-([^-@]*)(-bounces)?@antlr.org"] { fileinto "${0} :: 1:${1} 2:${2} 3:${3} 4:${4} 5:${5} 6:${6} 7:${7}"; } The email contains: Sender: antlr-interest-bounces at antlr.org I'm trying to form a folder from the first two parts of the sender. In the real script, that will do a "fileto antlr.interes...
2009 Jul 11
0
[LLVMdev] ANTLR?
..., 2009, at 12:40 PM, Vikram S. Adve wrote: > We are looking for an open source C++ parser other than g++ if > possible. Clang would be great but its C++ support is still some > way away and we need something that works or nearly works now. Does > anyone have any experience with ANTLR for parsing C++ and for > extending their C++ parser? Any other feedback on ANTLR in general > would be welcome too. Thanks, You need a lot more than a traditional parser to parse c++, you have to do full template instantiation, partial template specialization etc just to be able t...
2009 Jul 11
0
[LLVMdev] ANTLR?
For a LL(1) parser, it might be a little bit difficult to parse complex grammar like C++, but it might work. ANTLR worked great when other codes were written in Java, but it was a little bit painful when using other languages like python. I worked on it two years ago. I guess they might have some improvement now. Haohui On 07/11/2009 02:40 PM, Vikram S. Adve wrote: > We are looking for an open source C++...
2011 Jan 24
0
[LLVMdev] LLVM grammar for ANTLR
...them into the source. What were you planning on doing with your LLVM parser, if I may ask? --Sam ----- Original Message ---- > From: Surinder <surifilms at gmail.com> > To: llvmdev at cs.uiuc.edu > Sent: Sun, January 23, 2011 10:35:38 PM > Subject: [LLVMdev] LLVM grammar for ANTLR > > Has anyone written a grammar for LLVM for ANTLR. I mean an ANTLR > grammar that parses LLVM instructions. Is an LLVM grammar available > for any other parsing tool? > > Surinder
2011 Jan 25
1
[LLVMdev] LLVM grammar for ANTLR
...planning on doing with your LLVM parser, if I may ask? > > --Sam > > > ----- Original Message ---- >> From: Surinder <surifilms at gmail.com> >> To: llvmdev at cs.uiuc.edu >> Sent: Sun, January 23, 2011 10:35:38 PM >> Subject: [LLVMdev] LLVM grammar for ANTLR >> >> Has anyone written a grammar for LLVM for ANTLR.  I mean an  ANTLR >> grammar that parses LLVM instructions.  Is an LLVM grammar  available >> for any other parsing  tool? >> >> Surinder > > > >
2009 Sep 22
0
[LLVMdev] help with llvm make system
Stefan Oestreicher <stefan.oestreicher at deluxe-design.at> writes: [snip] > Unfortunately no matter what I do to the makefile of the compiler tool > it won't compile. I always get errors in llvm/Support/Annotation.h that > look like some type declarations are missing. Unfortunately my > experience building C/C++ programs, especially with autoconf etc., is > very
2009 Sep 22
1
[LLVMdev] help with llvm make system
...ror: expected `{' before numeric constant f:/dev/projects/llvm-2.5/include/llvm/Support/Annotation.h: In copy constructor `llvm::AnnotationID::AnnotationID(const llvm::AnnotationID&)': and this is the compile command: if g++ -I/f/dev/projects/llvm-2.5/include -I/f/dev/projects/lomo-antlr/include -I/f/dev/projects/lomo-antlr/tools/lomoc -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -I/usr/local/include -Woverloaded-virtual -pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused -Wno-unused-parameter -c -MMD -MP -MF "/f/dev/p...
2007 Mar 20
1
[LLVMdev] Google SOC - Idea
On 20 Mar 2007, at 15:45, Jeff Cohen wrote: > Duncan Sands wrote: >>> If that fails, I will build a front-end using ANTLR [http:// >>> antlr.org] a parser generator with which I am familiar and for >>> which a FORTRAN grammar is already available (targeting an >>> obsolete version of ANTLR, but it should not be too difficult to >>> update). >> Bad plan. I doubt you can...
2009 Jul 11
2
[LLVMdev] ANTLR?
Right, I understand that. I was hoping there was such an implementation using ANTLR since it looks like a fairly mature project. I'm not sure how stable or mature Elsa is (but comments to clarify that would be appreciated.). E.g., a quick scan of their Web page shows the comment that they only have a partial type checker. It also says their template instantiation is i...
2009 Sep 22
2
[LLVMdev] help with llvm make system
...very limited if not to say non-existent. I would very much appreciate any hint on what I'm doing wrong. Both makefiles also change the compiler and linker flags after including the Makefile.common if that's of any relevance: CXXFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib -lantlr3c I'm using llvm 2.5 and building with gcc 3.4.5, gnu make 3.81 on, may Stallman forgive me, windows xp using mingw/msys. LLVM itself compiled without problems though so I'm quite sure it's just me doing something wrong rather than my setup. thanks, Stefan
2013 Aug 14
2
[LLVMdev] gerate LLVM IR from an AST output from ANTLR
Hi, I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an AST. I want to comvert this AST to a LLVM IR, Can someone point me some relevant documentation/examples/ etc. on how to go about doing this? TIA. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/att...
2009 Jul 12
0
[LLVMdev] ANTLR?
...kram S. Adve <vadve at cs.uiuc.edu> wrote: > We are looking for an open source C++ parser other than g++ if possible. > Clang would be great but its C++ support is still some way away and we need > something that works or nearly works now. Does anyone have any experience > with ANTLR for parsing C++ and for extending their C++ parser? Any other > feedback on ANTLR in general would be welcome too. Thanks, > > --Vikram > *Associate Professor, Computer Science* > *University of Illinois at Urbana-Champaign* > *http://llvm.org/~vadve <http://llvm.org/%7Evadve...
2007 Mar 20
2
[LLVMdev] Google SOC - Idea
...port the fix. (4) wrong code. I haven't seen many of these. Having a good testsuite helps to flush these out. I'm currently working my way through the Ada testsuite, which is quite comprehensive. Hopefully the fortran one is too. > If that fails, I will build a > front-end using ANTLR [http://antlr.org] a parser generator with which > I am familiar and for which a FORTRAN grammar is already available > (targeting an obsolete version of ANTLR, but it should not be too > difficult to update). Bad plan. I doubt you can build a serious fortran compiler in this way in the...
2009 Dec 13
1
[LLVMdev] ANTLR+LLVM example for simple C
Howdy, I just finished a book called Language Implementation Patterns but I ran out of room at 400 pages before I could squeeze in an LLVM example. I left a link in the book to the ANTLR wiki so I can slap something together: http://www.antlr.org/wiki/display/ANTLR3/LLVM The code is good but the description was slapped together I'm afraid (i.e., don't take it as an example of the book quality. ha!). The example is cool because the same generator can emit LLVM IR or C cod...