token.java

来自「MSP IM Source code 2008 update」· Java 代码 · 共 27 行

JAVA
27
字号
package se.sics.mspsim.extutil.highlight;// Public domain, no restrictions, Ian Holyer, University of Bristol./** * A token represents a smallest meaningful fragment of text, such as a word, * recognised by a scanner. */public class Token {  /**   * The symbol contains all the properties shared with similar tokens.   */  public Symbol symbol;  /**   * The token's position is given by an index into the document text.   */  public int position;  /**   * Create a token with a given symbol and position.   */  public Token(Symbol symbol, int position) {    this.symbol = symbol;    this.position = position;  }}

⌨️ 快捷键说明

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