tokens.txt

来自「有关编译器的编译器.」· 文本 代码 · 共 88 行

TXT
88
字号
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of SableCC.                             * * See the file "LICENSE" for copyright information and the  * * terms and conditions for copying, distribution and        * * modification of SableCC.                                  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */// 0 : xxx.node// 1 : xxx.analysis// 2 : TxxxMacro:VariableTextToken/* This file was generated by SableCC (http://www.sablecc.org/). */package $0$;import $1$.*;public final class $2$ extends Token{    public $2$(String text)    {        setText(text);    }    public $2$(String text, int line, int pos)    {        setText(text);        setLine(line);        setPos(pos);    }    public Object clone()    {      return new $2$(getText(), getLine(), getPos());    }    public void apply(Switch sw)    {        ((Analysis) sw).case$2$(this);    }}$// 0 : xxx.node// 1 : xxx.analysis// 2 : Txxx// 3 : xxxMacro:FixedTextToken/* This file was generated by SableCC (http://www.sablecc.org/). */package $0$;import $1$.*;public final class $2$ extends Token{    public $2$()    {        super.setText("$3$");    }    public $2$(int line, int pos)    {        super.setText("$3$");        setLine(line);        setPos(pos);    }    public Object clone()    {      return new $2$(getLine(), getPos());    }    public void apply(Switch sw)    {        ((Analysis) sw).case$2$(this);    }    public void setText(String text)    {        throw new RuntimeException("Cannot change $2$ text.");    }}$

⌨️ 快捷键说明

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