Skip to content

Lexer Updates and Testing #13

Description

@martin-bucinskas

Description

The lexer class tests and improvements.

Issue 1

Inside the tests, the Lexer.lex method is called in a non static way despite lex being static.
There is no need to create an instance if lex is static.

Issue 2

Consider to use StringBuilder instead of StringBuffer as this will have performance has better performance.

Issue 3

There is an indentation error that you can spot in between lines 46 and 48 of Lexer.class.

Issue 4

Redundant private declaration for TokenType enum.

Metadata

Metadata

Assignees

Labels

fixFor improvement / fixing of working code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions