Made salah smoke particals smaller to see
This commit is contained in:
parent
0c4040b9d3
commit
8a2d4bbbfc
|
@ -264,10 +264,5 @@ public class FourCornerUnicodeDisplay {
|
||||||
public void burnRecursive(int line, int col) {
|
public void burnRecursive(int line, int col) {
|
||||||
throw new IllegalStateException("loop");
|
throw new IllegalStateException("loop");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void burnInvalidSalah(int line, int col) {
|
|
||||||
throw new IllegalStateException("Invalid salah on line: " + line + ":" + col);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -569,7 +569,7 @@ public class FourCornerZionStenoLexer {
|
||||||
}
|
}
|
||||||
if (salahMode.equals(decMode)) {
|
if (salahMode.equals(decMode)) {
|
||||||
if (salahMode.name().startsWith("__")) {
|
if (salahMode.name().startsWith("__")) {
|
||||||
smokeSignals.burnInvalidSalah(currLine, currCol);
|
smokeSignals.burnSalahDECUnsupported(currLine, currCol, decMode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
List<List<Integer>> args = new ArrayList<>();
|
List<List<Integer>> args = new ArrayList<>();
|
||||||
|
@ -617,7 +617,7 @@ public class FourCornerZionStenoLexer {
|
||||||
while (input.hasNext()) {
|
while (input.hasNext()) {
|
||||||
int cdcPoint = input.next();
|
int cdcPoint = input.next();
|
||||||
if (cdcPoint == FCDotCDC1604DashP6._NUL.ordinal()) {
|
if (cdcPoint == FCDotCDC1604DashP6._NUL.ordinal()) {
|
||||||
smokeSignals.burnInvalidSalah(currLine, currCol);
|
smokeSignals.burnSalahInvalidCakePoint(currLine, currCol, cdcPoint);
|
||||||
result.clear();
|
result.clear();
|
||||||
return ScanResult.NEXT; // _NUL not allowed salah
|
return ScanResult.NEXT; // _NUL not allowed salah
|
||||||
}
|
}
|
||||||
|
@ -641,7 +641,7 @@ public class FourCornerZionStenoLexer {
|
||||||
continue; // Next argument
|
continue; // Next argument
|
||||||
}
|
}
|
||||||
if (!embedESC.isEmbeddable()) {
|
if (!embedESC.isEmbeddable()) {
|
||||||
smokeSignals.burnInvalidEscape(currLine, currCol, cdcPoint);
|
smokeSignals.burnSalahDECIllegal(currLine, currCol, embedESC);
|
||||||
result.clear();
|
result.clear();
|
||||||
return ScanResult.NEXT;
|
return ScanResult.NEXT;
|
||||||
}
|
}
|
||||||
|
@ -651,7 +651,7 @@ public class FourCornerZionStenoLexer {
|
||||||
}
|
}
|
||||||
argu.add(cdcPoint);
|
argu.add(cdcPoint);
|
||||||
}
|
}
|
||||||
smokeSignals.burnInvalidSalah(currLine, currCol);
|
smokeSignals.burnSalahMissingAmen(currLine, currCol);
|
||||||
result.clear();
|
result.clear();
|
||||||
return ScanResult.NEXT;
|
return ScanResult.NEXT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
*/
|
*/
|
||||||
package org.x4o.o2o.fc18.zion7;
|
package org.x4o.o2o.fc18.zion7;
|
||||||
|
|
||||||
|
import org.x4o.o2o.fc18.zero33.FCDotDEC0127DashPX0;
|
||||||
|
|
||||||
/// Provides lexer smoke signals feedback.
|
/// Provides lexer smoke signals feedback.
|
||||||
///
|
///
|
||||||
/// @author Willem Cazander
|
/// @author Willem Cazander
|
||||||
|
@ -32,16 +34,26 @@ public interface FourCornerZionStenoLexerSmoke {
|
||||||
|
|
||||||
void burnRecursive(int line, int col);
|
void burnRecursive(int line, int col);
|
||||||
|
|
||||||
void burnInvalidSalah(int line, int col);
|
|
||||||
|
|
||||||
void burnInvalidEscape(int line, int col, int cakePoint);
|
void burnInvalidEscape(int line, int col, int cakePoint);
|
||||||
|
|
||||||
|
|
||||||
|
void burnSalahInvalidCakePoint(int line, int col, int cakePoint);
|
||||||
|
|
||||||
|
void burnSalahDECUnsupported(int line, int col, FCDotDEC0127DashPX0 mode);
|
||||||
|
|
||||||
|
void burnSalahDECIllegal(int line, int col, FCDotDEC0127DashPX0 mode);
|
||||||
|
|
||||||
|
void burnSalahMissingAmen(int line, int col);
|
||||||
|
|
||||||
|
|
||||||
void burnUNI21UnusedBigIndian(int line, int col);
|
void burnUNI21UnusedBigIndian(int line, int col);
|
||||||
|
|
||||||
|
|
||||||
void burnNCR1632ZeroSparks(int line, int col);
|
void burnNCR1632ZeroSparks(int line, int col);
|
||||||
|
|
||||||
void burnNCR1632UnusedSparks(int line, int col);
|
void burnNCR1632UnusedSparks(int line, int col);
|
||||||
|
|
||||||
|
|
||||||
interface Adapter extends FourCornerZionStenoLexerSmoke {
|
interface Adapter extends FourCornerZionStenoLexerSmoke {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -53,7 +65,19 @@ public interface FourCornerZionStenoLexerSmoke {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default void burnInvalidSalah(int line, int col) {
|
default void burnSalahInvalidCakePoint(int line, int col, int cakePoint) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default void burnSalahDECUnsupported(int line, int col, FCDotDEC0127DashPX0 mode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default void burnSalahDECIllegal(int line, int col, FCDotDEC0127DashPX0 mode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default void burnSalahMissingAmen(int line, int col) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -28,7 +28,7 @@ package org.x4o.o2o.fc18.zion7;
|
||||||
* @author Willem Cazander
|
* @author Willem Cazander
|
||||||
* @version 1.0 Jan 14, 2025
|
* @version 1.0 Jan 14, 2025
|
||||||
*/
|
*/
|
||||||
public class TestSmokeReader implements FourCornerZionStenoLexerSmoke {
|
public class TestSmokeReader implements FourCornerZionStenoLexerSmoke.Adapter {
|
||||||
|
|
||||||
int errorNCRZeroSparks;
|
int errorNCRZeroSparks;
|
||||||
int errorNCRUnusedSparks;
|
int errorNCRUnusedSparks;
|
||||||
|
@ -72,16 +72,4 @@ public class TestSmokeReader implements FourCornerZionStenoLexerSmoke {
|
||||||
public void burnRecursive(int line, int col) {
|
public void burnRecursive(int line, int col) {
|
||||||
errorRecursive = line;
|
errorRecursive = line;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void burnInvalidSalah(int line, int col) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void burnInvalidEscape(int line, int col, int cakePoint) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue