public static void checkNameSafety(String name) { if (isReservedWord(name)) { throw new RuntimeException("illegal use of reserved word: " + name); } else if (isDigit(name.charAt(0))) { throw new RuntimeException("not an identifier: " + name); } }
public static void checkNameSafety(String name) { if (isReservedWord(name)) { throw new RuntimeException("illegal use of reserved word: " + name); } else if (isDigit(name.charAt(0))) { throw new RuntimeException("not an identifier: " + name); } }
public static void checkNameSafety(String name) { if (isReservedWord(name)) { throw new CompileException("illegal use of reserved word: " + name); } else if (isDigit(name.charAt(0))) { throw new CompileException("not an identifier"); } }
if (ParseTools.isReservedWord(new String(sample, 0, idLength).trim())) { return getIndentifierSample();
if (isReservedWord(name = createStringTrimmed(expr, st, cursor - st)) || isNotValidNameorLabel(name)) throw new CompileException("illegal function name or use of reserved word", expr, cursor); captureToNextTokenJunction(); if (isReservedWord(name = createStringTrimmed(expr, st, cursor - st)) || isNotValidNameorLabel(name)) throw new CompileException("illegal prototype name or use of reserved word", expr, cursor);
if (isReservedWord(name = createStringTrimmed(expr, st, cursor - st)) || isNotValidNameorLabel(name)) throw new CompileException("illegal function name or use of reserved word", expr, cursor); captureToNextTokenJunction(); if (isReservedWord(name = createStringTrimmed(expr, st, cursor - st)) || isNotValidNameorLabel(name)) throw new CompileException("illegal prototype name or use of reserved word", expr, cursor);
if (isReservedWord(name = createStringTrimmed(expr, start, cursor - start)) || isNotValidNameorLabel(name)) throw new CompileException("illegal function name or use of reserved word", expr, cursor); captureToNextTokenJunction(); if (isReservedWord(name = createStringTrimmed(expr, start, cursor - start)) || isNotValidNameorLabel(name)) throw new CompileException("illegal prototype name or use of reserved word", expr, cursor);