| 1 |
@startuml |
| 2 |
'https://plantuml.com/class-diagram |
| 3 |
|
| 4 |
top to bottom direction |
| 5 |
hide circle |
| 6 |
hide empty members |
| 7 |
'hide empty methods |
| 8 |
skinparam groupInheritance 3 |
| 9 |
|
| 10 |
note as N1 |
| 11 |
Class Diagram |
| 12 |
--- |
| 13 |
<size 18>pyparsing 3.0.9 |
| 14 |
<size 18>May, 2022 |
| 15 |
end note |
| 16 |
|
| 17 |
N1 <-[hidden]- unicode |
| 18 |
|
| 19 |
package core { |
| 20 |
|
| 21 |
class globals { |
| 22 |
quoted_string |
| 23 |
sgl_quoted_string |
| 24 |
dbl_quoted_string |
| 25 |
counted_array() |
| 26 |
match_previous_literal() |
| 27 |
match_previous_expr() |
| 28 |
one_of() |
| 29 |
dict_of() |
| 30 |
original_text_for() |
| 31 |
ungroup() |
| 32 |
nested_expr() |
| 33 |
make_html_tags() |
| 34 |
make_xml_tags() |
| 35 |
common_html_entity |
| 36 |
replace_html_entity() |
| 37 |
class OpAssoc |
| 38 |
infix_notation() |
| 39 |
class IndentedBlock |
| 40 |
c_style_comment |
| 41 |
html_comment |
| 42 |
rest_of_line |
| 43 |
dbl_slash_comment |
| 44 |
cpp_style_comment |
| 45 |
java_style_comment |
| 46 |
python_style_comment |
| 47 |
match_only_at_col() |
| 48 |
replace_with() |
| 49 |
remove_quotes() |
| 50 |
with_attribute() |
| 51 |
with_class() |
| 52 |
trace_parse_action() |
| 53 |
condition_as_parse_action() |
| 54 |
srange() |
| 55 |
token_map() |
| 56 |
autoname_elements() |
| 57 |
} |
| 58 |
|
| 59 |
class ParseResults { |
| 60 |
class List |
| 61 |
{static}from_dict() |
| 62 |
__getitem__() |
| 63 |
__setitem__() |
| 64 |
__contains__() |
| 65 |
__len__() |
| 66 |
__bool__() |
| 67 |
__iter__() |
| 68 |
__reversed__() |
| 69 |
__getattr__() |
| 70 |
__add__() |
| 71 |
__getstate__() |
| 72 |
__setstate__() |
| 73 |
__getnewargs__() |
| 74 |
__dir__() |
| 75 |
as_dict() |
| 76 |
as_list() |
| 77 |
dump() |
| 78 |
get_name() |
| 79 |
items() |
| 80 |
keys() |
| 81 |
values() |
| 82 |
haskeys() |
| 83 |
pop() |
| 84 |
get() |
| 85 |
insert() |
| 86 |
append() |
| 87 |
extend() |
| 88 |
clear() |
| 89 |
copy() |
| 90 |
get_name() |
| 91 |
pprint() |
| 92 |
} |
| 93 |
|
| 94 |
class ParseBaseException #ffffff { |
| 95 |
{static} explain_exception() |
| 96 |
explain() |
| 97 |
mark_input_line() |
| 98 |
line |
| 99 |
lineno |
| 100 |
column |
| 101 |
parser_element |
| 102 |
} |
| 103 |
class ParseException |
| 104 |
class ParseFatalException |
| 105 |
class ParseSyntaxException |
| 106 |
|
| 107 |
ParseBaseException <|-- ParseException |
| 108 |
ParseBaseException <|-- ParseFatalException |
| 109 |
ParseFatalException <|-- ParseSyntaxException |
| 110 |
|
| 111 |
class ParserElement { |
| 112 |
name: str |
| 113 |
results_name: str |
| 114 |
--- |
| 115 |
{classifier} enable_packrat() |
| 116 |
{classifier} enable_left_recursion() |
| 117 |
{classifier} disable_memoization() |
| 118 |
{classifier} set_default_whitespace_chars() |
| 119 |
{classifier} inline_literals_using() |
| 120 |
{classifier} reset_cache() |
| 121 |
|
| 122 |
{static} verbose_stacktrace |
| 123 |
suppress_warning() |
| 124 |
|
| 125 |
operator + () -> And |
| 126 |
operator - () -> And.ErrorStop |
| 127 |
operator | () -> MatchFirst |
| 128 |
operator ^ () -> Or |
| 129 |
operator & () -> Each |
| 130 |
operator ~ () -> NotAny |
| 131 |
operator [] () -> _MultipleMatch |
| 132 |
operator () () [set_results_name()] |
| 133 |
|
| 134 |
add_condition() |
| 135 |
add_parse_action() |
| 136 |
set_parse_action() |
| 137 |
copy() |
| 138 |
ignore(expr) |
| 139 |
leave_whitespace() |
| 140 |
parse_with_tabs() |
| 141 |
suppress() |
| 142 |
set_break() |
| 143 |
set_debug() |
| 144 |
set_debug_actions() |
| 145 |
set_name() |
| 146 |
set_results_name() |
| 147 |
parse_string() |
| 148 |
scan_string() |
| 149 |
search_string() |
| 150 |
transform_string() |
| 151 |
split() |
| 152 |
run_tests() |
| 153 |
recurse() |
| 154 |
create_diagram() |
| 155 |
} |
| 156 |
class Token #ffffff |
| 157 |
class ParseExpression #ffffff { |
| 158 |
exprs: list[ParserElement] |
| 159 |
} |
| 160 |
class ParseElementEnhance #ffffff { |
| 161 |
expr: ParserElement |
| 162 |
} |
| 163 |
class _PositionToken #ffffff |
| 164 |
class Char |
| 165 |
class White |
| 166 |
class Word { |
| 167 |
'Word(init_chars: str, body_chars: str, min: int, \nmax: int, exact: int, as_keyword: bool, exclude_chars: str) |
| 168 |
} |
| 169 |
class Keyword { |
| 170 |
{static} set_default_keyword_chars(chars: str) |
| 171 |
} |
| 172 |
class CaselessKeyword |
| 173 |
class Empty |
| 174 |
class Literal |
| 175 |
class Regex |
| 176 |
class NoMatch |
| 177 |
class CharsNotIn |
| 178 |
class QuotedString |
| 179 |
|
| 180 |
class And |
| 181 |
class Or |
| 182 |
class MatchFirst |
| 183 |
class Each |
| 184 |
|
| 185 |
class OneOrMore |
| 186 |
class ZeroOrMore |
| 187 |
class DelimitedList |
| 188 |
class SkipTo |
| 189 |
class Group |
| 190 |
class Forward { |
| 191 |
operator <<= () |
| 192 |
} |
| 193 |
|
| 194 |
class LineStart |
| 195 |
class LineEnd |
| 196 |
class StringStart |
| 197 |
class StringEnd |
| 198 |
class WordStart |
| 199 |
class WordEnd |
| 200 |
class _MultipleMatch #ffffff |
| 201 |
class FollowedBy |
| 202 |
class PrecededBy |
| 203 |
class AtLineStart |
| 204 |
class AtStringStart |
| 205 |
|
| 206 |
class TokenConverter #ffffff |
| 207 |
class Located |
| 208 |
class Opt |
| 209 |
|
| 210 |
class Combine |
| 211 |
class Group |
| 212 |
class Dict |
| 213 |
class Suppress |
| 214 |
|
| 215 |
ParserElement <|-- Token |
| 216 |
ParserElement <|----- ParseExpression |
| 217 |
Token <|-- _PositionToken |
| 218 |
ParserElement <|----- ParseElementEnhance |
| 219 |
|
| 220 |
'ParseElementEnhance ---> ParserElement |
| 221 |
'ParseExpression ---> "*" ParserElement |
| 222 |
|
| 223 |
|
| 224 |
Token <|-- Empty |
| 225 |
Token <|-- CloseMatch |
| 226 |
Token <|-- NoMatch |
| 227 |
Token <|-- Literal |
| 228 |
Token <|-- Word |
| 229 |
Token <|---- Keyword |
| 230 |
Token <|--- Regex |
| 231 |
Token <|--- CharsNotIn |
| 232 |
Token <|-- White |
| 233 |
Token <|---- QuotedString |
| 234 |
Word <|-- Char |
| 235 |
Literal <|-- CaselessLiteral |
| 236 |
Keyword <|-- CaselessKeyword |
| 237 |
|
| 238 |
ParseExpression <|-- And |
| 239 |
ParseExpression <|-- Or |
| 240 |
ParseExpression <|-- MatchFirst |
| 241 |
ParseExpression <|-- Each |
| 242 |
|
| 243 |
ParseElementEnhance <|-- SkipTo |
| 244 |
ParseElementEnhance <|--- Forward |
| 245 |
ParseElementEnhance <|-- Located |
| 246 |
ParseElementEnhance <|--- _MultipleMatch |
| 247 |
_MultipleMatch <|-- OneOrMore |
| 248 |
_MultipleMatch <|-- ZeroOrMore |
| 249 |
ParseElementEnhance <|-- DelimitedList |
| 250 |
ParseElementEnhance <|--- NotAny |
| 251 |
ParseElementEnhance <|--- FollowedBy |
| 252 |
ParseElementEnhance <|--- PrecededBy |
| 253 |
ParseElementEnhance <|-- Opt |
| 254 |
ParseElementEnhance <|--- TokenConverter |
| 255 |
ParseElementEnhance <|-- AtStringStart |
| 256 |
ParseElementEnhance <|-- AtLineStart |
| 257 |
TokenConverter <|-- Group |
| 258 |
TokenConverter <|-- Dict |
| 259 |
TokenConverter <|-- Suppress |
| 260 |
TokenConverter <|-- Combine |
| 261 |
|
| 262 |
_PositionToken <|-- LineStart |
| 263 |
_PositionToken <|-- LineEnd |
| 264 |
_PositionToken <|-- WordStart |
| 265 |
_PositionToken <|-- WordEnd |
| 266 |
_PositionToken <|-- StringStart |
| 267 |
_PositionToken <|-- StringEnd |
| 268 |
|
| 269 |
} |
| 270 |
|
| 271 |
package common { |
| 272 |
class " " { |
| 273 |
comma_separated_list |
| 274 |
convert_to_integer() |
| 275 |
convert_to_float() |
| 276 |
integer |
| 277 |
hex_integer |
| 278 |
signed_integer |
| 279 |
fraction |
| 280 |
mixed_integer |
| 281 |
real |
| 282 |
sci_real |
| 283 |
number |
| 284 |
fnumber |
| 285 |
identifier |
| 286 |
ipv4_address |
| 287 |
ipv6_address |
| 288 |
mac_address |
| 289 |
convert_to_date() |
| 290 |
convert_to_datetime() |
| 291 |
iso8601_date |
| 292 |
iso8601_datetime |
| 293 |
uuid |
| 294 |
strip_html_tags() |
| 295 |
upcase_tokens() |
| 296 |
downcase_tokens() |
| 297 |
url |
| 298 |
} |
| 299 |
|
| 300 |
} |
| 301 |
package unicode { |
| 302 |
class unicode_set { |
| 303 |
printables: str |
| 304 |
alphas: str |
| 305 |
nums: str |
| 306 |
alphanums: str |
| 307 |
identchars: str |
| 308 |
identbodychars: str |
| 309 |
} |
| 310 |
class Latin1 |
| 311 |
class LatinA |
| 312 |
class LatinB |
| 313 |
class BasicMultilingualPlane |
| 314 |
class Chinese |
| 315 |
class Thai |
| 316 |
class Japanese { |
| 317 |
class Kanji |
| 318 |
class Hiragana |
| 319 |
class Katakana |
| 320 |
} |
| 321 |
class Greek |
| 322 |
class Hangul |
| 323 |
class Arabic |
| 324 |
class Devanagari |
| 325 |
class Hebrew |
| 326 |
class Cyrillic |
| 327 |
|
| 328 |
unicode_set <|-- Latin1 |
| 329 |
unicode_set <|--- LatinA |
| 330 |
unicode_set <|-- LatinB |
| 331 |
unicode_set <|---- BasicMultilingualPlane |
| 332 |
unicode_set <|-- Greek |
| 333 |
unicode_set <|--- Cyrillic |
| 334 |
unicode_set <|--- Chinese |
| 335 |
unicode_set <|--- Japanese |
| 336 |
unicode_set <|--- Hangul |
| 337 |
Chinese <|-- CJK |
| 338 |
Japanese <|-- CJK |
| 339 |
Hangul <|-- CJK |
| 340 |
unicode_set <|-- Thai |
| 341 |
unicode_set <|-- Arabic |
| 342 |
unicode_set <|-- Hebrew |
| 343 |
unicode_set <|--- Devanagari |
| 344 |
|
| 345 |
} |
| 346 |
|
| 347 |
ParserElement <-[hidden] ParseBaseException |
| 348 |
'ParseBaseException <-[hidden] globals |
| 349 |
'globals <-[hidden] ParserElement |
| 350 |
CJK <-[hidden]-- common |
| 351 |
|
| 352 |
@enduml |