Skip to content
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

Fix the lexer problem #2

Open
1 task
cragkhit opened this issue Dec 11, 2017 · 2 comments
Open
1 task

Fix the lexer problem #2

cragkhit opened this issue Dec 11, 2017 · 2 comments
Assignees
Labels

Comments

@cragkhit
Copy link
Collaborator

  • Try to printout which file causes the problem below
line 221:9 token recognition error at: '"Vsi na na trg. Crni panter po novem 0,67� \n\n'
line 222:38 token recognition error at: '";\n'
line 221:9 token recognition error at: '"Vsi na na trg. Crni panter po novem 0,67� \n\n'
line 222:38 token recognition error at: '";\n'
line 20:8 token recognition error at: '#'
line 20:9 token recognition error at: '#'
line 20:10 token recognition error at: '#'
line 20:23 token recognition error at: '#'
line 20:24 token recognition error at: '#'
line 20:25 token recognition error at: '#'
line 20:8 token recognition error at: '#'
line 20:9 token recognition error at: '#'
line 20:10 token recognition error at: '#'
line 20:23 token recognition error at: '#'
@cragkhit cragkhit added the bug label Dec 11, 2017
@cragkhit cragkhit self-assigned this Dec 11, 2017
@cragkhit
Copy link
Collaborator Author

cragkhit commented Dec 11, 2017

I tried this file default/15408.java and it has this special characters (€) in it. What's the right encoding to use here?

	// miha g.
	
	public String resnica() {
		return "Vsi na na trg. Crni panter po novem 0,67€ \n
		Samo se Jack Bauer nam lahko pomaga!";
	}
	
	public void krnekej() {
		System.out.println("Ko bom velik, bom pilot. Mogoce kopilot.");
	}

	public static void main(String[] args) {
		Kalkulator2 kalkulator2 = new Kalkulator2();
		kalkulator2.setVisible(true);
	}

@cragkhit
Copy link
Collaborator Author

cragkhit commented Dec 11, 2017

It's stored in ES index like this:

// miha g. 
public String resnica ( ) { return Samo se Jack Bauer nam lahko pomaga ! } 
public void krnekej ( ) { System . out . println ( \"Ko bom velik, bom pilot. Mogoce kopilot.\" ) ; } public static void main ( String [ ] args ) { Kalkulator2 kalkulator2 = new Kalkulator2 ( ) ; kalkulator2 . setVisible ( true ) ; } 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant