Skip to content

Commit

Permalink
Clean up comments around SVG path lexical scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
Junology committed Dec 12, 2024
1 parent f50ff24 commit 4d71168
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/processing/core/PShapeSVG.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ protected void parsePath() {

StringBuilder pathBuffer = new StringBuilder();

// The states of the lexical sanner
enum LexState {
AFTER_CMD,// Just after a command (i.e. a single alphabet)
NEUTRAL, // Neutral state, waiting for a number expression or a command
Expand All @@ -523,15 +524,6 @@ enum LexState {
EXP_HEAD, // On the head of the exponent part of a scientific notation; the '-' sign or a digit
EXP_TAIL, // On the integer expression in the exponent part
}
/*
* The state of the lexer:
* -1: just after the command (i.e. a single alphabet)
* 0: neutral state
* 1: on a digit sequence for integer representation
* 2: on a decimal
* 3: on a digit or a sign in exponent in scientific notation, e.g. 3.14e-2)
* 4: on a digit sequence in exponent
*/
LexState lexState = LexState.NEUTRAL;

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

0 comments on commit 4d71168

Please sign in to comment.