src/Pure/General/scan.scala
changeset 46712 8650d9a95736
parent 46627 fbe2cb05bdb3
child 48342 4a8f06cbf8bb
equal deleted inserted replaced
46711:f745bcc4a1e5 46712:8650d9a95736
    38 
    38 
    39     val empty: Lexicon = new Lexicon(empty_tree)
    39     val empty: Lexicon = new Lexicon(empty_tree)
    40     def apply(elems: String*): Lexicon = empty ++ elems
    40     def apply(elems: String*): Lexicon = empty ++ elems
    41   }
    41   }
    42 
    42 
    43   class Lexicon private(main_tree: Lexicon.Tree) extends RegexParsers
    43   final class Lexicon private(main_tree: Lexicon.Tree) extends RegexParsers
    44   {
    44   {
    45     import Lexicon.Tree
    45     import Lexicon.Tree
    46 
    46 
    47 
    47 
    48     /* auxiliary operations */
    48     /* auxiliary operations */