Now the parser apparently is working well. But still is necessary to do more tests and verifications about operators' precedence. Furthermore I  wrote a grammar that represent the parser itself(I did that reading my code).