Wednesday, September 22, 2004

I'm working on the garbage collector for my w3 spec parse table generator and from the first time run of its mark pass you can see the structure of the parse table for the production rule

word := "syntax" | "synth"

----------- build completed -------------
/==================== MwW3ParserLexerStateGroup::mark ===============================================
|  /==================== MwW3ParserParsetable::Dump =================================================
|  |  0073 's' 1
|  \-------------------- MwW3ParserParsetable::Dump -------------------------------------------------
|  /==================== MwW3ParserParsetable::mark =================================================
|  |  /==================== MwW3ParserLexerStateGroup::mark =========================================
|  |  |  mark 1
|  |  |  /==================== MwW3ParserLexerStateGroup::mark ======================================
|  |  |  |  /==================== MwW3ParserParsetable::Dump ========================================
|  |  |  |  |  0079 'y' 1
|  |  |  |  \-------------------- MwW3ParserParsetable::Dump ----------------------------------------
|  |  |  |  /==================== MwW3ParserParsetable::mark ========================================
|  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark ================================
|  |  |  |  |  |  mark 1
|  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark =============================
|  |  |  |  |  |  |  /==================== MwW3ParserParsetable::Dump ===============================
|  |  |  |  |  |  |  |  006E 'n' 1
|  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::Dump -------------------------------
|  |  |  |  |  |  |  /==================== MwW3ParserParsetable::mark ===============================
|  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark =======================
|  |  |  |  |  |  |  |  |  mark 1
|  |  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark ====================
|  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserParsetable::Dump ======================
|  |  |  |  |  |  |  |  |  |  |  stack depth:  1688 bytes
|  |  |  |  |  |  |  |  |  |  |  0074 't' 1
|  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::Dump ----------------------
|  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserParsetable::mark ======================
|  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark ==============
|  |  |  |  |  |  |  |  |  |  |  |  mark 1
|  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark ===========
|  |  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserParsetable::Dump =============
|  |  |  |  |  |  |  |  |  |  |  |  |  |  0061 'a' 0
|  |  |  |  |  |  |  |  |  |  |  |  |  |  0068 'h' 1
|  |  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::Dump -------------
|  |  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserParsetable::mark =============
|  |  |  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark =====
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  mark 0
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserLexerStateGroup::mark ==
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  /==================== MwW3ParserParsetable::Dump ====
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  0078 'x' 0
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::Dump ----
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark --
|  |  |  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark -----
|  |  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::mark -------------
|  |  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark -----------
|  |  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark --------------
|  |  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::mark ----------------------
|  |  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark --------------------
|  |  |  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark -----------------------
|  |  |  |  |  |  |  \-------------------- MwW3ParserParsetable::mark -------------------------------
|  |  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark -----------------------------
|  |  |  |  |  \-------------------- MwW3ParserLexerStateGroup::mark --------------------------------
|  |  |  |  \-------------------- MwW3ParserParsetable::mark ----------------------------------------
|  |  |  \-------------------- MwW3ParserLexerStateGroup::mark --------------------------------------
|  |  \-------------------- MwW3ParserLexerStateGroup::mark -----------------------------------------
|  \-------------------- MwW3ParserParsetable::mark -------------------------------------------------
\-------------------- MwW3ParserLexerStateGroup::mark -----------------------------------------------
----------- garbage collect completed ---------------------------------------------------------------

* note to self - never open blog editor in two windows - bad things happen.. I just lost a document from a few months ago that I was grabbing some HTML from - luckily it was still in the browser history.

Wednesday, September 22, 2004 11:10:46 PM (AUS Eastern Standard Time, UTC+10:00)  #    Comments [0]