New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] unexpected Error: could not match input [sf#107] #109
Comments
Commented by lsf37 on 2010-03-01 22:34 UTC yes, please attach your test file so I can reproduce the problem. Cheers, |
Commented by kneunert on 2010-03-02 17:42 UTC |
Commented by kneunert on 2010-03-02 17:43 UTC i attached a running eclipse-project with ant-file. If you are only interested in the lexer-definition-file, have a look into lexer/processor.lex cheers Kim |
Commented by kneunert on 2010-03-27 20:02 UTC thanks Kim |
Commented by lsf37 on 2010-04-01 05:44 UTC Cheers, |
Commented by kneunert on 2010-05-22 19:05 UTC cheers Kim |
Commented by malbrech on 2010-10-16 07:20 UTC my students learn to program with Kim’s „Struktor“, which is a very helpful tool. In a few weeks they want to learn about arrays. But there is this problem with the bracket notification in JFLEX. Please forgive me putting pressure on you. I’m sure, that you have to solve a lot of problems which are more important and urgent than this one. But I need to know, if it’s possible to fix this bug within the next two weeks because it will take some time to find another way of teaching this subject. My students and I will be very grateful, if you succeed in fixing the bug. Good luck. Best regards |
Commented by lsf37 on 2010-10-17 02:29 UTC |
Commented by lsf37 on 2010-10-17 02:30 UTC |
Commented by lsf37 on 2010-10-17 02:32 UTC I can also attach a new JFlex.jar if you need it. Let me know if you do. Cheers, |
Commented by kneunert on 2010-10-17 09:56 UTC cheers Kim |
Commented by lsf37 on 2010-10-19 02:01 UTC This fix only works for the %pack (default) and %table code generation methods. The %switch method will still exhibit the problem, but I'd like to deprecate the %switch and %table methods anyway in the future. Cheers, |
Updated by lsf37 on 2010-10-19 02:01 UTC
|
Commented by nobody on 2010-10-19 05:17 UTC Cheers, |
Updated by lsf37 on 2014-03-01 00:26 UTC
|
Reported by kneunert on 2010-03-01 20:56 UTC
I'm using a bit of a trick in the Lexer like this:
<YYINITIAL> {identifier}[ { yybegin(ARRAY1); return someSymbol; }
<ARRAY1> $? { yybegin(ARRAY2); return someSymbol; }
<ARRAY2> $? { yybegin(ARRAY3); return someSymbol; }
<ARRAY3> $? { yybegin(YYINITIAL); return someSymbol; }
<YYINITIAL> ] { yybegin(YYINITIAL); return someSymbol; }
The trick here is, that i use an unconvential optional character. This Character is not there, so no character gets consumed however a series of symbols are returned. This used to work in JLex and it does not seem to work in JFlex anymore.
I get this:
Symbol: [
Exception in thread "main" java.lang.Error: Error: could not match input
at struktor.processor.Yylex.zzScanError(Yylex.java:439)
at struktor.processor.Yylex.next_token(Yylex.java:590)
at struktor.processor.MyMain.main(MyMain.java:19)
I have a simple testcase for this. If needed, i can attach it to this ticket.
Thanks
Kim ( https://sourceforge.net/projects/struktor/ )
The text was updated successfully, but these errors were encountered: