dcsimg
Continuing to get unexpected token errors
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lori_Twehues
Posted On:   Tuesday, November 27, 2001 11:43 AM

Following is the grammar to parse genomic location text. Examples include "565", "5..6", "join(5.8..98)". The parser appears to work except it generates line1: unexpected token: errors It then proceeds to complete the parse correctly. Any ideas? function : "complement" | "order" | "join" ; location : local_location | function OP location ( COMMA location) * CP ; local_location : base_position | between_position | base_range ; base_position : INTEGER    More>>

Following is the grammar to parse genomic location text.
Examples include "565", "5..6", "join(5.8..98)".


The parser appears to work except it generates line1: unexpected token: errors



It then proceeds to complete the parse correctly. Any ideas?



function : "complement"

| "order"

| "join"

;



location : local_location

| function OP location ( COMMA location) * CP

;



local_location : base_position

| between_position

| base_range

;



base_position : INTEGER

| LOW_BASE

| HIGH_BASE

| BOUNDED_POSITION

;



between_position : INTEGER BETWEEN INTEGER;



base_range : INTEGER DOTDOT INTEGER;




Thanks

   <<Less

Re: Continuing to get unexpected token errors

Posted By:   Monty_Zukowski  
Posted On:   Wednesday, November 28, 2001 06:54 AM

You don't really have enough information to pinpoint the problem, but the error message you show above indicates that a newline or carriage return or some other whitespace or invisible character is being returned. Or that a token is created without any text associated with it.


Turn on tracing and see what tokens it generates.

About | Sitemap | Contact