Skip to content

Commit 4d71168

Browse files
committed
Clean up comments around SVG path lexical scanner
1 parent f50ff24 commit 4d71168

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

core/src/processing/core/PShapeSVG.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ protected void parsePath() {
515515

516516
StringBuilder pathBuffer = new StringBuilder();
517517

518+
// The states of the lexical sanner
518519
enum LexState {
519520
AFTER_CMD,// Just after a command (i.e. a single alphabet)
520521
NEUTRAL, // Neutral state, waiting for a number expression or a command
@@ -523,15 +524,6 @@ enum LexState {
523524
EXP_HEAD, // On the head of the exponent part of a scientific notation; the '-' sign or a digit
524525
EXP_TAIL, // On the integer expression in the exponent part
525526
}
526-
/*
527-
* The state of the lexer:
528-
* -1: just after the command (i.e. a single alphabet)
529-
* 0: neutral state
530-
* 1: on a digit sequence for integer representation
531-
* 2: on a decimal
532-
* 3: on a digit or a sign in exponent in scientific notation, e.g. 3.14e-2)
533-
* 4: on a digit sequence in exponent
534-
*/
535527
LexState lexState = LexState.NEUTRAL;
536528

537529
for (int i = 0; i < pathDataChars.length; i++) {

0 commit comments

Comments
 (0)