gate.wiki.antlr
Class DefaultYAMEngine

java.lang.Object
  extended by antlr.CharScanner
      extended by gate.wiki.antlr.YAMLexer
          extended by gate.wiki.antlr.DefaultYAMEngine
All Implemented Interfaces:
antlr.TokenStream, YAMLexerTokenTypes

public class DefaultYAMEngine
extends YAMLexer


Field Summary
 
Fields inherited from class gate.wiki.antlr.YAMLexer
_tokenSet_0, _tokenSet_1, _tokenSet_10, _tokenSet_11, _tokenSet_12, _tokenSet_13, _tokenSet_14, _tokenSet_15, _tokenSet_16, _tokenSet_17, _tokenSet_18, _tokenSet_19, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9, context, inTable, inTitle, target
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Fields inherited from interface gate.wiki.antlr.YAMLexerTokenTypes
ANCHOR, ARG, ARGLIST, BLANK, BLANK_LINE_THEN_MARKUP, BLOCKQUOTE, BOLD, BR, CODE, COL_SEP, END_TABLE, EOF, ESC, ESC2, ID, INQUOTE, ITALIC, LEFT_EDGE_MARKUP, LEVEL, LINE_START_THEN_MARKUP, LINK, LONGDASH, NESTED_PAREN, NOT_SPECIAL_CHAR, NULL_TREE_LOOKAHEAD, PLUGIN, ROW_SEP, SECTION, STRING, TABLE, TEXT, TEXT_TIL_END_ARG, TITLE, TOP_PAREN, TT, WS, WS2
 
Constructor Summary
DefaultYAMEngine(Reader in)
           
DefaultYAMEngine(Reader in, YAMContext context)
           
 
Method Summary
protected  void captureText()
           
protected  void closeAllLists()
           
protected  void closeAllLists(int level)
           
protected  void closeList()
           
protected  void closeSectionsToLevel(int level)
          Close levels sectionLevel..level
protected  void define(String id, String value)
           
protected  void ol(int level)
           
protected  void plugin(String id, Vector args)
           
protected  void section(String text, int level)
           
protected  void title(String title)
           
static void translate(YAMContext context, YAMTarget target, String inputName, String text)
          Given a target and current YAM context to exec within, translate the given text to the appropriate output language.
 void translate(YAMTarget target)
          Begin on-the-fly syntax-directed translation
protected  void ul(int level)
           
protected  void variable(String id)
           
 
Methods inherited from class gate.wiki.antlr.YAMLexer
getContext, getTarget, mANCHOR, mARG, mARGLIST, mBLANK_LINE_THEN_MARKUP, mBLANK, mBLOCKQUOTE, mBOLD, mBR, mCODE, mCOL_SEP, mEND_TABLE, mESC, mESC2, mID, mINQUOTE, mITALIC, mLEFT_EDGE_MARKUP, mLEVEL, mLINE_START_THEN_MARKUP, mLINK, mLONGDASH, mNESTED_PAREN, mNOT_SPECIAL_CHAR, mPLUGIN, mROW_SEP, mSECTION, mSTRING, mTABLE, mTEXT_TIL_END_ARG, mTEXT, mTITLE, mTOP_PAREN, mTT, mWS, mWS2, nextToken, setContext
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultYAMEngine

public DefaultYAMEngine(Reader in,
                        YAMContext context)

DefaultYAMEngine

public DefaultYAMEngine(Reader in)
Method Detail

translate

public void translate(YAMTarget target)
               throws antlr.TokenStreamException
Begin on-the-fly syntax-directed translation

Specified by:
translate in class YAMLexer
Throws:
antlr.TokenStreamException

closeAllLists

protected void closeAllLists()
Specified by:
closeAllLists in class YAMLexer

closeAllLists

protected void closeAllLists(int level)
Specified by:
closeAllLists in class YAMLexer

closeList

protected void closeList()
Specified by:
closeList in class YAMLexer

captureText

protected void captureText()
Specified by:
captureText in class YAMLexer

ul

protected void ul(int level)
Specified by:
ul in class YAMLexer

ol

protected void ol(int level)
Specified by:
ol in class YAMLexer

closeSectionsToLevel

protected void closeSectionsToLevel(int level)
Close levels sectionLevel..level

Specified by:
closeSectionsToLevel in class YAMLexer

section

protected void section(String text,
                       int level)
Specified by:
section in class YAMLexer

title

protected void title(String title)
Specified by:
title in class YAMLexer

define

protected void define(String id,
                      String value)
Specified by:
define in class YAMLexer

plugin

protected void plugin(String id,
                      Vector args)
Specified by:
plugin in class YAMLexer

translate

public static void translate(YAMContext context,
                             YAMTarget target,
                             String inputName,
                             String text)
                      throws antlr.TokenStreamException
Given a target and current YAM context to exec within, translate the given text to the appropriate output language.

Throws:
antlr.TokenStreamException

variable

protected void variable(String id)
Specified by:
variable in class YAMLexer