[antlr-interest] please help ... I need to parse a paper ...

enriquebris at cimex.com.cu enriquebris at cimex.com.cu
Thu Mar 16 11:39:02 PST 2006


Hello,,,

 

I'm trying to parse a paper. The document format is more or less like
the following:

 

Title

Authors

 

Abstract

Keywords

 

Introduction

 

...

 

References

 

First of all, I'm trying to get the text before ABSTRACT ... I have a
lexer rule -->  ABSTRACT_WORD : "abstract"; and in the parser -->
abstract : (~ABSTRACT_WORD) but it doesn't work as I expect. The thing
is: I want to obtain all the text before the word ABSTRACT
(ABSTRACT_WORD token), and the text between ABSTRACT_WORD (token) and
INTRODUCTION_WORD (Also I have a INTRODUCTION_WORD declared in the
lexer). Please,,, can anybody suggest me an idea to solve this ?

 

Enrique

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060316/655b2c51/attachment.html


More information about the antlr-interest mailing list