|
| From: | Andreas Weber |
| Subject: | [Octave-bug-tracker] [bug #45092] lexer panic from syntax error in M-file |
| Date: | Wed, 13 May 2015 08:37:21 +0000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0 |
URL:
<http://savannah.gnu.org/bugs/?45092>
Summary: lexer panic from syntax error in M-file
Project: GNU Octave
Submitted by: andy1978
Submitted on: Mi 13 Mai 2015 08:37:19 GMT
Category: Interpreter
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Crash
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
hg id 2ae4a7ef4378
create a file foo.m
function myfunction ()
if (r.
# this comment is important
endfunction
and run 'foo' from Octave gives
ctave:str-to-num: ../../octave/libinterp/parse-tree/lex.ll:2910: int
octave_base_lexer::handle_identifier(): Assertion `!
at_beginning_of_statement' failed.
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Abgebrochen
I stumbled over this because "lookfor" parses all m-files in the current
working directory and stops with the above error because there is unfinished
code in some files.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45092>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |