|
2001-04-13
| ||
| 23:17 | • Ticket [217839ffff] parsing problem status still Closed with 3 other changes artifact: e588d6a681 user: dgp | |
|
2000-10-26
| ||
| 07:59 | • Closed ticket [217839ffff]. artifact: 7193bf4c8e user: welch | |
| 00:44 | • New ticket [217839ffff]. artifact: e0fd36b214 user: nobody | |
parsing problem
Closed / Invalid217839ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:43
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
welch Closed ticket [217839ffff].
[History diff]2000-10-26 07:59:46
dgp Ticket [217839ffff]: 3 changes
[History diff]2001-04-13 23:17:16
Log in (anonymous is fine) to add a comment.