tokenparsers.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 40 行
SCALA
40 行
/* __ *\** ________ ___ / / ___ Scala API **** / __/ __// _ | / / / _ | (c) 2006-2007, LAMP/EPFL **** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **** /____/\___/_/ |_/____/_/ | | **** |/ **\* */// $Id: TokenParsers.scala 14415 2008-03-19 00:53:09Z mihaylov $package scala.util.parsing.combinator.syntactical/** <p> * This is the core component for token-based parsers. * </p> * <p> * @requires lexical a component providing the tokens consumed by the * parsers in this component. * </p> * * @author Martin Odersky, Adriaan Moors */trait TokenParsers extends Parsers { /** Tokens is the abstract type of the `Token's consumed by the parsers in this component*/ type Tokens <: scala.util.parsing.syntax.Tokens /** lexical is the component responsible for consuming some basic kind of * input (usually character-based) and turning it into the tokens * understood by these parsers. */ val lexical: Tokens /** The input-type for these parsers*/ type Elem = lexical.Token }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?