public class Unicode2OldLatex 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.z.CUP$Unicode2OldLatex$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 SectionInfo |
sectInfo_ |
protected String |
sectionName_ |
protected 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 |
|---|
Unicode2OldLatex()
Default constructor.
|
Unicode2OldLatex(CztScanner scanner,
SectionInfo sectInfo,
Properties properties,
Collection<? extends Key<?>> explicitDeps) |
Unicode2OldLatex(Scanner s)
Constructor which sets the default scanner.
|
Unicode2OldLatex(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() |
Dialect |
getDialect() |
protected LocInfo |
getLocation(Symbol symbol) |
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(SectionInfo sectInfo) |
void |
setSectionInfo(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, unpackFromStringsprotected 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.z.CUP$Unicode2OldLatex$actions action_obj
protected Source source_
protected 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 Unicode2OldLatex()
public Unicode2OldLatex(Scanner s)
public Unicode2OldLatex(Scanner s, SymbolFactory sf)
public Unicode2OldLatex(CztScanner scanner, SectionInfo sectInfo, Properties properties, Collection<? extends Key<?>> explicitDeps)
public short[][] production_table()
production_table in class lr_parserpublic short[][] action_table()
action_table in class lr_parserpublic short[][] reduce_table()
reduce_goto table.reduce_table in class lr_parserprotected void init_actions()
init_actions in class lr_parserpublic 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_parserpublic int start_production()
start_production in class lr_parserpublic void user_init()
throws Exception
public Dialect getDialect()
public CztScanner getCztScanner()
protected boolean hasErrors()
protected void raiseErrors()
throws PrintException
PrintExceptionpublic SectionInfo getSectionInfo()
public void setSectionInfo(SectionInfo sectInfo)
public void setSectionInfo(SectionInfo sectInfo, String sectionName)
public Writer getWriter()
public void setWriter(Writer writer)
protected void write(String s)
protected Symbol local_next_token() throws Exception
Exceptionpublic void report_error(String message, Object info)
report_error in class lr_parserpublic void report_fatal_error(String message, Object info) throws Exception
report_fatal_error in class lr_parserExceptionpublic void unrecovered_syntax_error(Symbol token) throws Exception
unrecovered_syntax_error in class lr_parserExceptionCopyright © 2003–2016 Community Z Tools Project. All rights reserved.