src/Pure/General/symbol.scala
changeset 66919 1f93e376aeb6
parent 66051 70d3d0818d42
child 67127 cf111622c9f8
equal deleted inserted replaced
66918:ec2b50aeb0dd 66919:1f93e376aeb6
    57   def ascii(c: Char): Symbol =
    57   def ascii(c: Char): Symbol =
    58   {
    58   {
    59     if (c > 127) error("Non-ASCII character: " + quote(c.toString))
    59     if (c > 127) error("Non-ASCII character: " + quote(c.toString))
    60     else char_symbols(c.toInt)
    60     else char_symbols(c.toInt)
    61   }
    61   }
       
    62 
       
    63   def is_ascii(s: Symbol): Boolean = s.length == 1 && s(0) < 128
    62 
    64 
    63 
    65 
    64   /* symbol matching */
    66   /* symbol matching */
    65 
    67 
    66   private val symbol_total = new Regex("""(?xs)
    68   private val symbol_total = new Regex("""(?xs)