question.java
来自「To help you in writing an LL grammar, we」· Java 代码 · 共 39 行
JAVA
39 行
// LLAnalyze -- Nathaniel Nystrom, February 2000// For use in Cornell University Computer Science 412/413// Class representing expressions of the form [ alpha ], where alpha// is some string of expressions.package Iota.util.grammar;import java.util.*;public class Question extends Expr{ List exprs; public Question(List exprs) { this.exprs = exprs; } public List getContents() { return exprs; } public String toString() { String s = "["; Iterator it = exprs.iterator(); while (it.hasNext()) { Expr expr = (Expr) it.next(); s += " " + expr; } return s + " ]"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?