abstractsyntax.scala

来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 32 行

SCALA
32
字号
/*                     __                                               *\**     ________ ___   / /  ___     Scala API                            ****    / __/ __// _ | / /  / _ |    (c) 2006-2007, LAMP/EPFL             ****  __\ \/ /__/ __ |/ /__/ __ |                                         **** /____/\___/_/ |_/____/_/ | |                                         ****                          |/                                          **\*                                                                      */package scala.util.parsing.astimport scala.util.parsing.input.Positional/** This component provides the core abstractions for representing an Abstract Syntax Tree * * @author Adriaan Moors  */trait AbstractSyntax {  /** The base class for elements of the abstract syntax tree.   */  trait Element extends Positional    /** The base class for elements in the AST that represent names {@see Binders}.   */  trait NameElement extends Element {    def name: String    override def equals(that: Any): Boolean = that match {      case n: NameElement => n.name == name      case _ => false    }  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?