isac-java/src/java/isac/gui/mawen/syntax/isabelle/symbol.scala
changeset 5239 b4e3883d7b66
parent 5232 34f18fdc3103
equal deleted inserted replaced
5238:d9f9cfd09b0f 5239:b4e3883d7b66
    55   def is_ascii_identifier(s: String): Boolean =
    55   def is_ascii_identifier(s: String): Boolean =
    56     s.length > 0 && is_ascii_letter(s(0)) && s.forall(is_ascii_letdig)
    56     s.length > 0 && is_ascii_letter(s(0)) && s.forall(is_ascii_letdig)
    57 
    57 
    58   def ascii(c: Char): Symbol =
    58   def ascii(c: Char): Symbol =
    59   {
    59   {
    60     if (c > 127) {
    60     if (c > 127) error("Non-ASCII character: " + XLibrary.quote(c.toString))
    61       Console.printf("Non-ASCII character: " + XLibrary.quote(c.toString));
       
    62       "Non-ASCII character: " + XLibrary.quote(c.toString)
       
    63     }
       
    64     else char_symbols(c.toInt)
    61     else char_symbols(c.toInt)
    65   }
    62   }
    66 
    63 
    67 
    64 
    68   /* symbol matching */
    65   /* symbol matching */