Package xtc.tree

Examples of xtc.tree.Visitor


   
    if (0 < runtime.errorCount()) return ;
     
    if (runtime.test("printSymbolTable")) {
      if (null != table){
        Visitor visitor = runtime.console().visitor();
        try {
          table.root().dump(runtime.console());
        } finally {
          runtime.console().register(visitor);
        }
View Full Code Here


   *   to set the semantic value.
   * @return <code>true</code> if the element sets the semantic value.
   */
  @SuppressWarnings("unused")
  public static boolean setsValue(Element e, final boolean all) {
    return (Boolean)new Visitor() {
        private boolean isLast = true;

        public Boolean visit(OrderedChoice c) {
          if (! isLast) return Boolean.FALSE;

View Full Code Here

 
  /** Print the symbol table. */
  @SuppressWarnings("unused")
  private final void printSymbolTable() {
    if (null != table) {
      Visitor visitor = runtime.console().visitor();
      try {
        table.root().dump(runtime.console());
      } finally {
        runtime.console().register(visitor);
      }
View Full Code Here

   *
   * @param runtime The runtime.
   */
  public void trace(Runtime runtime) {
    // Save the registered visitor.
    Visitor     visitor = runtime.console().visitor();
    TypePrinter printer = new TypePrinter(runtime.console());
    try {
      printer.dispatch(this);
      runtime.console().pln();
    } finally {
View Full Code Here

TOP

Related Classes of xtc.tree.Visitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.