Overview
| Artifact ID: | e0fd36b2142b9373e082518204d64f9dd2b894ee |
|---|---|
| Ticket: | 217839ffffffffffffffffffffffffffffffffff
parsing problem |
| User & Date: | nobody on 2000-10-26 00:44:43 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1715 Bug Version: 8.0.4 SubmitDate: '1999-04-05' LastModified: '1999-08-07' Severity: LOW Status: Closed Submitter: pat ChangedBy: hobbs RelatedBugIDs: 1367 2206 OS: All OSVersion: NA Machine: NA FixedDate: '2000-10-25' FixedInVersion: NA ClosedDate: '1999-08-07' Name: Zachary Wicky email: [email protected] Support: None Severity: 4 OperatingSystem: Sun Solaris Synopsis: parsing problem ReproducibleScript: # ldjflksdalkasdf; puts abc" puts "def"; # akjfaj klfasjklj set x 88 if {$x == 1} { set x 1 #} else{ # set x 2 } ObservedBehavior: if you look at the first two comments, they are ignored, the third comment with the bad else, is parsed. Even though once it hits the comment line, parsing should stop (at least according to the "ldjf" line. We got hung up on this bug due to the way things are set up on our program, the errors are getting sent into a black hole, so we didn't notice it. It doesn't change the world, but I want to let you know about a 'possible' parsing error. I didn't even pay attention to the line with the comments at the start thinking, "Hey, these can't be the source of the problem" This is the expected comment behavior. Brace matching is done before comment recognition, which can cause confusion like this. An example showing correctness: if {1} {set a 5; # set the var} The bracing must be considered first (in the context of the 'if'). Only when the if is evaled do we recognize the 2nd command as a comment. -- 08/07/1999 hobbs
- foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "parsing problem"
- type changed to: "Bug"