apg-exp
Version:
(Deprecated: use apg-js instead.) Pattern-matching alternative to RegExp. Replaces the regular expression syntax with ABNF. Adds APG parser features such as User Defined Terminals (hand-written pattern matchers) and access to the AST.
215 lines (214 loc) • 4.08 kB
CSS
/* This file automatically generated by toless() and LESS. */
.apg-mono {
font-family: monospace;
}
.apg-active {
font-weight: bold;
color: #000000;
}
.apg-match {
font-weight: bold;
color: #264BFF;
}
.apg-empty {
font-weight: bold;
color: #0fbd0f;
}
.apg-nomatch {
font-weight: bold;
color: #FF4000;
}
.apg-lh-match {
font-weight: bold;
color: #1A97BA;
}
.apg-lb-match {
font-weight: bold;
color: #5F1687;
}
.apg-remainder {
font-weight: bold;
color: #999999;
}
.apg-ctrl-char {
font-weight: bolder;
font-style: italic;
font-size: .6em;
}
.apg-line-end {
font-weight: bold;
color: #000000;
}
.apg-error {
font-weight: bold;
color: #FF4000;
}
.apg-phrase {
color: #000000;
background-color: #8caae6;
}
.apg-empty-phrase {
color: #0fbd0f;
}
table.apg-state {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: left;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-state th,
table.apg-state td {
text-align: left;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-state th:nth-last-child(2),
table.apg-state td:nth-last-child(2) {
text-align: right;
}
table.apg-state caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-stats {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-stats th,
table.apg-stats td {
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-stats caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-trace {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-trace caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-trace th,
table.apg-trace td {
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-trace th:last-child,
table.apg-trace th:nth-last-child(2),
table.apg-trace td:last-child,
table.apg-trace td:nth-last-child(2) {
text-align: left;
}
table.apg-grammar {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-grammar caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-grammar th,
table.apg-grammar td {
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-grammar th:last-child,
table.apg-grammar td:last-child {
text-align: left;
}
table.apg-rules {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-rules caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-rules th,
table.apg-rules td {
text-align: right;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-rules a {
color: #003399 ;
}
table.apg-rules a:hover {
color: #8caae6 ;
}
table.apg-attrs {
font-family: monospace;
margin-top: 5px;
font-size: 11px;
line-height: 130%;
text-align: center;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-attrs caption {
font-size: 125%;
line-height: 130%;
font-weight: bold;
text-align: left;
}
table.apg-attrs th,
table.apg-attrs td {
text-align: center;
border: 1px solid black;
border-collapse: collapse;
}
table.apg-attrs th:nth-child(1),
table.apg-attrs th:nth-child(2),
table.apg-attrs th:nth-child(3) {
text-align: right;
}
table.apg-attrs td:nth-child(1),
table.apg-attrs td:nth-child(2),
table.apg-attrs td:nth-child(3) {
text-align: right;
}
table.apg-attrs a {
color: #003399 ;
}
table.apg-attrs a:hover {
color: #8caae6 ;
}