public class Unicode2Latex extends lr_parser
Modifier and Type | Field and Description |
---|---|
protected static short[][] |
_action_table
Parse-action table.
|
protected static short[][] |
_production_table
Production table.
|
protected static short[][] |
_reduce_table
reduce_goto table. |
protected net.sourceforge.czt.print.zeves.CUP$Unicode2Latex$actions |
action_obj
Instance of action encapsulation class.
|
protected List<CztError> |
errorList_
The list of parse errors.
|
protected ContextFreeScanner |
markupScanner_
Used to scan the unicode provided within markup directives.
|
protected PrintException |
printException_ |
protected net.sourceforge.czt.session.SectionInfo |
sectInfo_ |
protected String |
sectionName_ |
protected net.sourceforge.czt.session.Source |
source_
The source currently being parsed.
|
static Map<Object,String> |
symbolMap_ |
static Map<String,Object> |
symbolMap2_ |
protected int |
tabSize_ |
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, symbolFactory, tos
Constructor and Description |
---|
Unicode2Latex()
Default constructor.
|
Unicode2Latex(CztScanner scanner,
net.sourceforge.czt.session.SectionInfo sectInfo,
Properties properties,
Collection<? extends net.sourceforge.czt.session.Key<?>> explicitDeps) |
Unicode2Latex(Scanner s)
Constructor which sets the default scanner.
|
Unicode2Latex(Scanner s,
SymbolFactory sf)
Constructor which sets the default scanner.
|
Modifier and Type | Method and Description |
---|---|
short[][] |
action_table()
Access to parse-action table.
|
protected CztError |
createPrintError(Symbol token) |
Symbol |
do_action(int act_num,
lr_parser parser,
Stack<Symbol> stack,
int top)
Invoke a user supplied parse action.
|
int |
EOF_sym()
EOF Symbol index. |
int |
error_sym()
error Symbol index. |
CztScanner |
getCztScanner() |
net.sourceforge.czt.session.Dialect |
getDialect() |
protected LocInfo |
getLocation(Symbol symbol) |
net.sourceforge.czt.session.SectionInfo |
getSectionInfo() |
Writer |
getWriter() |
protected boolean |
hasErrors() |
protected void |
init_actions()
Action encapsulation object initializer.
|
protected Symbol |
local_next_token()
Returns the next token.
|
short[][] |
production_table()
Access to production table.
|
protected void |
raiseErrors() |
short[][] |
reduce_table()
Access to
reduce_goto table. |
void |
report_error(String message,
Object info) |
void |
report_fatal_error(String message,
Object info) |
Symbol |
scan()
Scan to get the next Symbol.
|
void |
setSectionInfo(net.sourceforge.czt.session.SectionInfo sectInfo) |
void |
setSectionInfo(net.sourceforge.czt.session.SectionInfo sectInfo,
String sectionName) |
void |
setWriter(Writer writer) |
int |
start_production()
Indicates start production.
|
int |
start_state()
Indicates start state.
|
protected Object |
toObject(Symbol symbol) |
void |
unrecovered_syntax_error(Symbol token) |
void |
user_init()
User initialization code.
|
protected void |
write(String s) |
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, getScanner, getSymbolFactory, parse_lookahead, parse, read_lookahead, restart_lookahead, setScanner, shift_under_error, syntax_error, try_parse_ahead, unpackFromStrings
protected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
reduce_goto
table.protected net.sourceforge.czt.print.zeves.CUP$Unicode2Latex$actions action_obj
protected net.sourceforge.czt.session.Source source_
protected net.sourceforge.czt.session.SectionInfo sectInfo_
protected String sectionName_
protected int tabSize_
protected PrintException printException_
protected ContextFreeScanner markupScanner_
null
we are just
printing the definition part of a latex markup directive.public Unicode2Latex()
public Unicode2Latex(Scanner s)
public Unicode2Latex(Scanner s, SymbolFactory sf)
public Unicode2Latex(CztScanner scanner, net.sourceforge.czt.session.SectionInfo sectInfo, Properties properties, Collection<? extends net.sourceforge.czt.session.Key<?>> explicitDeps)
public short[][] production_table()
production_table
in class lr_parser
public short[][] action_table()
action_table
in class lr_parser
public short[][] reduce_table()
reduce_goto
table.reduce_table
in class lr_parser
protected void init_actions()
init_actions
in class lr_parser
public Symbol do_action(int act_num, lr_parser parser, Stack<Symbol> stack, int top) throws Exception
public int start_state()
start_state
in class lr_parser
public int start_production()
start_production
in class lr_parser
public void user_init() throws Exception
public net.sourceforge.czt.session.Dialect getDialect()
public CztScanner getCztScanner()
protected boolean hasErrors()
protected void raiseErrors() throws PrintException
PrintException
public net.sourceforge.czt.session.SectionInfo getSectionInfo()
public void setSectionInfo(net.sourceforge.czt.session.SectionInfo sectInfo)
public void setSectionInfo(net.sourceforge.czt.session.SectionInfo sectInfo, String sectionName)
public Writer getWriter()
public void setWriter(Writer writer)
protected void write(String s)
protected Symbol local_next_token() throws Exception
Exception
public void report_error(String message, Object info)
report_error
in class lr_parser
public void report_fatal_error(String message, Object info) throws Exception
report_fatal_error
in class lr_parser
Exception
public void unrecovered_syntax_error(Symbol token) throws Exception
unrecovered_syntax_error
in class lr_parser
Exception
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.