# Dedicated module for the syntax of all the parsing # All tokens inherit a SemanticType among SemanticType, ExplicitSemanticType and EmptySemanticType # All tokens have a label, and __eq__ and __ne__ methods. # Note: there is an UnimplementedToken # Usage: # from bootstraparse.modules.syntax import line # line.parse_line('string') # returns a List of tokens # line_to_replace.parse_line('string') # returns a List of tokens parsed for replacements # imports.parse_line('string', True) # returns a List of tokens parsed for imports # any_token.create_diagram("filename") # Debugging
| Class | |
Class used for verification in the context manager. Adds the first element of the content to the label (for matching purposes). |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Semantic type used to signify it has a matching start component and needs to be matched. |
| Class | |
Undocumented |
| Class | |
! string ! number of ! indicates level |
| Class | |
Empty semantic type, the content is the only information we need. |
| Class | |
(#int) |
| Class | |
* |
| Class | |
#. |
| Class | |
~~ |
| Class | |
** |
| Class | |
No summary |
| Class | |
__ |
| Class | |
Explicit semantic type, the label is the only information we need. |
| Class | |
Semantic type used by the context manager to ascertain token is possible to encapsulate. |
| Class | |
# string # number of # indicates level |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Semantic type used to signify it has a matching end component and needs to be matched. |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Allows us to access basic operations and identify each token parsed. |
| Class | |
div|article|section|aside|header|body|nav>> |
| Class | |
<<div|article|section|aside|header|body|nav |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Class used for verification in the context manager. Classes inheriting this should be added to matched_elements. |
| Class | |
Undocumented |
| Function | of |
Function creating a custom function for generating the given Token type. :param token_class: SemanticType class :type token_class: type :return: returns a function creating an instance of the given class :rtype: function... |
| Function | readable |
Function used for testing and readability purposes. Replaces matched markup with html-like tags. :param list_of_tokens: list of matched markup tokens in analysed text. :type list_of_tokens: list :return: returns readable string... |
| Function | reparse |
Creates a function which reparses given match with specified parsing element. :param parse_element: pp object defining desired match :type parse_element: pp.ParserElement :return: returns a function parsing given match with specified parsing element :rtype: function... |
| Function | split |
Splits the optional attributes into separate lists. :param optionals: list of optional attributes :type optionals: OptionalToken :return: SplitOptionals object containing the split optionals :rtype: SplitOptionals... |
| Variable | alias |
Undocumented |
| Variable | alias |
Undocumented |
| Variable | assignation |
Undocumented |
| Variable | blockquote |
Undocumented |
| Variable | blockquote |
Undocumented |
| Variable | class |
Undocumented |
| Variable | code |
Undocumented |
| Variable | display |
Undocumented |
| Variable | enhanced |
Undocumented |
| Variable | et |
Undocumented |
| Variable | et |
Undocumented |
| Variable | et |
Undocumented |
| Variable | et |
Undocumented |
| Variable | et |
Undocumented |
| Variable | expression |
Undocumented |
| Variable | header |
Undocumented |
| Variable | html |
Undocumented |
| Variable | il |
Undocumented |
| Variable | image |
Undocumented |
| Variable | image |
Undocumented |
| Variable | line |
Undocumented |
| Variable | line |
Undocumented |
| Variable | markup |
Undocumented |
| Variable | multi |
Undocumented |
| Variable | one |
Undocumented |
| Variable | one |
Undocumented |
| Variable | one |
Undocumented |
| Variable | one |
Undocumented |
| Variable | one |
Undocumented |
| Variable | optional |
Undocumented |
| Variable | quotation |
Undocumented |
| Variable | quotes |
Undocumented |
| Variable | rgx |
Undocumented |
| Variable | se |
Undocumented |
| Variable | se |
Undocumented |
| Variable | se |
Undocumented |
| Variable | |
Undocumented |
| Variable | structural |
Undocumented |
| Variable | table |
Undocumented |
| Variable | table |
Undocumented |
| Variable | table |
Undocumented |
| Variable | text |
Undocumented |
| Variable | value |
Undocumented |
| Variable | var |
Undocumented |
Function creating a custom function for generating the given Token type. :param token_class: SemanticType class :type token_class: type :return: returns a function creating an instance of the given class :rtype: function
Function used for testing and readability purposes. Replaces matched markup with html-like tags. :param list_of_tokens: list of matched markup tokens in analysed text. :type list_of_tokens: list :return: returns readable string. :rtype: string
Creates a function which reparses given match with specified parsing element. :param parse_element: pp object defining desired match :type parse_element: pp.ParserElement :return: returns a function parsing given match with specified parsing element :rtype: function