[Bug translator/10913] bad/misleading translator error message
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Nov 6 20:12:00 GMT 2009
------- 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.
More information about the Systemtap
mailing list