coins.backend.tools
クラス Tmd2Java

java.lang.Object
  |
  +--coins.backend.tools.Tmd2Java

class Tmd2Java
extends java.lang.Object


入れ子クラスの概要
(パッケージプライベート) static class Tmd2Java.JavaMacro
           
(パッケージプライベート) static class Tmd2Java.Nonterm
          Nonterminal Symbol
(パッケージプライベート) static class Tmd2Java.OpPattern
          Production's right hand side pattern.
(パッケージプライベート) static class Tmd2Java.Pattern
          Grammar's right side hand pattern.
(パッケージプライベート) static class Tmd2Java.Prod
          Production lhs <- rhs
(パッケージプライベート) static class Tmd2Java.RuleSet
          Set of rules (defrule or defrewrite/defpattern)
 
フィールドの概要
(パッケージプライベート) static int ANYTYPE
           
(パッケージプライベート) static java.lang.String CODEGENERATOR
           
(パッケージプライベート) static java.lang.String DEFBUILD
           
(パッケージプライベート) static java.lang.String DEFEMIT
           
(パッケージプライベート) static boolean defFileOnly
           
(パッケージプライベート) static java.util.Map definitions
           
(パッケージプライベート) static int emCounter
           
(パッケージプライベート) static java.lang.String IMPORT
           
(パッケージプライベート) static Tmd2Java.RuleSet instSel
          RuleSet for instruction selection.
(パッケージプライベート) static BiList javaMacros
           
(パッケージプライベート) static java.util.Map macros
           
(パッケージプライベート) static java.io.PrintWriter out
           
(パッケージプライベート) static boolean printExpanded
           
(パッケージプライベート) static java.io.BufferedReader proto
           
(パッケージプライベート) static java.lang.String PROTOFILE
           
(パッケージプライベート) static RegisterDescription2Java regDesc
           
(パッケージプライベート) static Tmd2Java.RuleSet rewriting
          RuleSet for rewriting.
(パッケージプライベート) static java.lang.String STATE
           
(パッケージプライベート) static java.lang.String targetName
           
(パッケージプライベート) static BiList typeRegsetList
           
(パッケージプライベート) static java.lang.String usage
           
 
メソッドの概要
(パッケージプライベート) static ImList desugar(ImList list)
          Expand syntax sugar (foreach).
(パッケージプライベート) static void doDef(ImList form)
           
(パッケージプライベート) static void doDefPattern(ImList form)
          Parse defpattern.
(パッケージプライベート) static void doDefRegset(ImList form)
           
(パッケージプライベート) static void doDefRegsetPair(ImList pair)
           
(パッケージプライベート) static void doDefRegsetVar(ImList form)
           
(パッケージプライベート) static void doDefRegsetVarPair(ImList pair)
           
(パッケージプライベート) static void doDefRewrite(ImList form)
          Parse defrewrite.
(パッケージプライベート) static void doDefRule(ImList form)
          Parse defrule.
(パッケージプライベート) static void doDefStart(ImList form)
           
(パッケージプライベート) static boolean evalCond(java.lang.Object x)
          Evaluate condition part of @if
(パッケージプライベート) static ImList expandDefined(ImList form)
           
(パッケージプライベート) static java.lang.String expandDefMacro(java.lang.String kind, java.io.PushbackReader rdr)
          expand %defemit(name args...) or %defbuild(name args...)
(パッケージプライベート) static ImList expandEq(ImList form)
           
(パッケージプライベート) static ImList expandForeach(ImList sexp)
          Expand foreach macro.
(パッケージプライベート) static ImList expandIf(ImList form)
          Expand if
(パッケージプライベート) static ImList expandInclude(ImList form, ImList tail)
          Expand include file
(パッケージプライベート) static ImList expandMacro(ImList form)
          Expand macro
(パッケージプライベート) static ImList expandNe(ImList form)
           
(パッケージプライベート) static ImList expandNot(ImList form)
           
(パッケージプライベート) static boolean isMacro(java.lang.Object name)
           
(パッケージプライベート) static boolean isNumber(java.lang.String s)
          Return true if s is a number string.
(パッケージプライベート) static boolean isVarOp(int op)
           
(パッケージプライベート) static java.lang.String listString(java.lang.Object obj)
           
(パッケージプライベート) static void listString1(java.lang.StringBuffer buf, java.lang.Object obj)
           
static void main(java.lang.String[] argv)
           
(パッケージプライベート) static int parseDollar(java.lang.String x)
          parse $1, $2, ...
(パッケージプライベート) static void parseTmd(java.io.PushbackReader rdr)
          Convert TMD to Java.
(パッケージプライベート) static void printBeautifully(ImList list)
          Print expanded input.
(パッケージプライベート) static java.lang.String quote(java.lang.String x)
           
(パッケージプライベート) static java.lang.String readLine(java.io.PushbackReader rdr)
          Read line from pushback reader.
(パッケージプライベート) static ImList readSexpList(java.io.PushbackReader rdr, ImList tail)
          Read entire file as a list.
(パッケージプライベート) static java.lang.String readToken(java.io.PushbackReader rdr)
          Read token from pushback reader.
(パッケージプライベート) static java.lang.String readWhites(java.io.PushbackReader rdr)
          Read whitespaces from pushback reader.
(パッケージプライベート) static void registerMacroDef(ImList form)
          Register macro definition
(パッケージプライベート) static java.lang.String replaceDollars(java.lang.String str)
           
(パッケージプライベート) static ImList replaceList(ImList body, java.lang.Object fv, java.lang.Object val, ImList tail)
           
(パッケージプライベート) static ImList replaceListAux(ImList body, ImList fpl, ImList apl, ImList tail)
           
(パッケージプライベート) static ImList replaceLoop(ImList body, java.lang.Object cv, ImList vals)
           
(パッケージプライベート) static java.lang.Object replaceSubstr(java.lang.Object x, java.lang.String fv, java.lang.Object val)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PROTOFILE

static final java.lang.String PROTOFILE
関連項目:
定数フィールド値

ANYTYPE

static final int ANYTYPE
関連項目:
定数フィールド値

targetName

static java.lang.String targetName

out

static java.io.PrintWriter out

proto

static java.io.BufferedReader proto

defFileOnly

static boolean defFileOnly

printExpanded

static boolean printExpanded

regDesc

static RegisterDescription2Java regDesc

definitions

static java.util.Map definitions

macros

static java.util.Map macros

rewriting

static Tmd2Java.RuleSet rewriting
RuleSet for rewriting.


instSel

static Tmd2Java.RuleSet instSel
RuleSet for instruction selection.


javaMacros

static BiList javaMacros

emCounter

static int emCounter

typeRegsetList

static BiList typeRegsetList

STATE

static final java.lang.String STATE
関連項目:
定数フィールド値

CODEGENERATOR

static final java.lang.String CODEGENERATOR
関連項目:
定数フィールド値

DEFEMIT

static final java.lang.String DEFEMIT
関連項目:
定数フィールド値

DEFBUILD

static final java.lang.String DEFBUILD
関連項目:
定数フィールド値

IMPORT

static final java.lang.String IMPORT
関連項目:
定数フィールド値

usage

static java.lang.String usage
メソッドの詳細

printBeautifully

static void printBeautifully(ImList list)
Print expanded input.


isNumber

static boolean isNumber(java.lang.String s)
Return true if s is a number string.


doDefRule

static void doDefRule(ImList form)
               throws SyntaxError
Parse defrule.

SyntaxError

doDefRewrite

static void doDefRewrite(ImList form)
                  throws SyntaxError
Parse defrewrite.

SyntaxError

doDefPattern

static void doDefPattern(ImList form)
                  throws SyntaxError
Parse defpattern.

SyntaxError

expandDefMacro

static java.lang.String expandDefMacro(java.lang.String kind,
                                       java.io.PushbackReader rdr)
                                throws SyntaxError,
                                       java.io.IOException
expand %defemit(name args...) or %defbuild(name args...)

SyntaxError
java.io.IOException

readSexpList

static ImList readSexpList(java.io.PushbackReader rdr,
                           ImList tail)
                    throws java.io.IOException,
                           SyntaxError
Read entire file as a list.

java.io.IOException
SyntaxError

replaceSubstr

static java.lang.Object replaceSubstr(java.lang.Object x,
                                      java.lang.String fv,
                                      java.lang.Object val)
                               throws SyntaxError
SyntaxError

replaceList

static ImList replaceList(ImList body,
                          java.lang.Object fv,
                          java.lang.Object val,
                          ImList tail)
                   throws SyntaxError
SyntaxError

replaceListAux

static ImList replaceListAux(ImList body,
                             ImList fpl,
                             ImList apl,
                             ImList tail)
                      throws SyntaxError
SyntaxError

replaceLoop

static ImList replaceLoop(ImList body,
                          java.lang.Object cv,
                          ImList vals)
                   throws SyntaxError
SyntaxError

expandForeach

static ImList expandForeach(ImList sexp)
                     throws SyntaxError
Expand foreach macro.

SyntaxError

expandMacro

static ImList expandMacro(ImList form)
                   throws SyntaxError
Expand macro

SyntaxError

expandIf

static ImList expandIf(ImList form)
                throws SyntaxError
Expand if

SyntaxError

evalCond

static boolean evalCond(java.lang.Object x)
                 throws SyntaxError
Evaluate condition part of @if

SyntaxError

expandEq

static ImList expandEq(ImList form)
                throws SyntaxError
SyntaxError

expandNe

static ImList expandNe(ImList form)
                throws SyntaxError
SyntaxError

expandDefined

static ImList expandDefined(ImList form)
                     throws SyntaxError
SyntaxError

expandNot

static ImList expandNot(ImList form)
                 throws SyntaxError
SyntaxError

isMacro

static boolean isMacro(java.lang.Object name)

registerMacroDef

static void registerMacroDef(ImList form)
                      throws SyntaxError
Register macro definition

SyntaxError

expandInclude

static ImList expandInclude(ImList form,
                            ImList tail)
                     throws SyntaxError
Expand include file

SyntaxError

desugar

static ImList desugar(ImList list)
               throws SyntaxError
Expand syntax sugar (foreach).

SyntaxError

doDef

static void doDef(ImList form)
           throws SyntaxError
SyntaxError

doDefStart

static void doDefStart(ImList form)
                throws SyntaxError
SyntaxError

doDefRegset

static void doDefRegset(ImList form)
                 throws SyntaxError
SyntaxError

doDefRegsetPair

static void doDefRegsetPair(ImList pair)
                     throws SyntaxError
SyntaxError

doDefRegsetVar

static void doDefRegsetVar(ImList form)
                    throws SyntaxError
SyntaxError

doDefRegsetVarPair

static void doDefRegsetVarPair(ImList pair)
                        throws SyntaxError
SyntaxError

isVarOp

static boolean isVarOp(int op)

readLine

static java.lang.String readLine(java.io.PushbackReader rdr)
                          throws java.io.IOException
Read line from pushback reader.

java.io.IOException

readWhites

static java.lang.String readWhites(java.io.PushbackReader rdr)
                            throws java.io.IOException
Read whitespaces from pushback reader.

java.io.IOException

readToken

static java.lang.String readToken(java.io.PushbackReader rdr)
                           throws java.io.IOException
Read token from pushback reader.

java.io.IOException

parseTmd

static void parseTmd(java.io.PushbackReader rdr)
              throws SyntaxError,
                     java.io.IOException
Convert TMD to Java.

SyntaxError
java.io.IOException

quote

static java.lang.String quote(java.lang.String x)

parseDollar

static int parseDollar(java.lang.String x)
                throws SyntaxError
parse $1, $2, ...

SyntaxError

listString1

static void listString1(java.lang.StringBuffer buf,
                        java.lang.Object obj)

listString

static java.lang.String listString(java.lang.Object obj)

replaceDollars

static java.lang.String replaceDollars(java.lang.String str)

main

public static void main(java.lang.String[] argv)