This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @implements ContentHandler, LexicalHandler | |
* @param writer WriteStream | |
*/ | |
function HtmlSerializer(writer) { | |
this.writer = writer; | |
this.ignoreLevel = 0; | |
this.escapeLevel = 0; | |
this.documentLocator = null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Columnizer</title> | |
<style> | |
body{ | |
margin: 0 auto; | |
width: 960px; | |
} | |
.columnized{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%pure_parser | |
%expect 2 | |
%left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE | |
%left ',' | |
%left T_LOGICAL_OR | |
%left T_LOGICAL_XOR | |
%left T_LOGICAL_AND | |
%right T_PRINT | |
%left '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL T_CONCAT_EQUAL T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% | |
%state ST_IN_SCRIPTING | |
%state ST_DOUBLE_QUOTES | |
%state ST_BACKQUOTE | |
%state ST_HEREDOC | |
%state ST_START_HEREDOC | |
%state ST_END_HEREDOC | |
%state ST_NOWDOC |