This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10913] bad/misleading translator error message


------- Additional Comments From jistone at redhat dot com  2009-11-06 20:11 -------
The problem is in the tokenizer -- it treats an entire "%{...%}" as one big
tok_embedded token.  If it doesn't find the closing, you instead get a tok_junk
"%{...EOF".

You get similar weirdness from unterminated strings:

$ stap -ve 'global s = "foo'
parse error: expected literal string or number
	saw: junk 'foo' at <input>:1:12
     source: global s = "foo
                        ^

IMO, there no use for the tokenizer to generate tok_junk -- it should just throw
an error right away indicating *why* it is junk...

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10913

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]