From 1fd90675106f47c98db33376a7312b80e5001640 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 14 Sep 2017 09:12:44 -0700 Subject: [PATCH] Fix a couple of duplicated ids in the docs. This lead to the tocs links not working. --- doc/ply.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/ply.html b/doc/ply.html index b54854a..30905e2 100644 --- a/doc/ply.html +++ b/doc/ply.html @@ -18,7 +18,7 @@

PLY (Python Lex-Yacc)

  • Parsing basics
  • Yacc @@ -50,10 +50,10 @@

    PLY (Python Lex-Yacc)

  • An example
  • Combining Grammar Rule Functions
  • Character Literals -
  • Empty Productions +
  • Empty Productions
  • Changing the starting symbol
  • Dealing With Ambiguous Grammars -
  • The parser.out file +
  • The parser.out file
  • Syntax Error Handling
  • Line Number and Position Tracking
  • AST Construction -
  • Embedded Actions +
  • Embedded Actions
  • Miscellaneous Yacc Notes
  • Multiple Parsers and Lexers -
  • Using Python's Optimized Mode +
  • Using Python's Optimized Mode
  • Advanced Debugging
    • Debugging the lex() and yacc() commands @@ -85,7 +85,7 @@

      PLY (Python Lex-Yacc)

      -

      1. Preface and Requirements

      +

      1. Preface and Requirements

      @@ -718,7 +718,7 @@

      4.11 Building and using the lexer

      None if the end of the input text has been reached.
    -

    4.12 The @TOKEN decorator

    +

    4.12 The @TOKEN decorator

    In some applications, you may want to define build tokens from as a series of @@ -1418,7 +1418,7 @@

    4.19 Conditional lexing and start conditions

    position), stores it, and returns a token 'CCODE' containing all of that text. When returning the token, the lexing state is restored back to its initial state. -

    4.20 Miscellaneous Issues

    +

    4.20 Miscellaneous Issues

    @@ -1893,7 +1893,7 @@

    6.3 Character Literals

    Character literals are limited to a single character. Thus, it is not legal to specify literals such as '<=' or '=='. For this, use the normal lexing rules (e.g., define a rule such as t_EQ = r'=='). -

    6.4 Empty Productions

    +

    6.4 Empty Productions

    yacc.py can handle empty productions by defining a rule like this: @@ -2211,7 +2211,7 @@

    6.6 Dealing With Ambiguous Grammars

    parser.out debugging file with an appropriately high level of caffeination. -

    6.7 The parser.out file

    +

    6.7 The parser.out file

    Tracking down shift/reduce and reduce/reduce conflicts is one of the finer pleasures of using an LR @@ -2953,7 +2953,7 @@

    6.10 AST Construction

    -

    6.11 Embedded Actions

    +

    6.11 Embedded Actions

    The parsing technique used by yacc only allows actions to be executed at the end of a rule. For example, @@ -3273,7 +3273,7 @@

    7. Multiple Parsers and Lexers

    For example, if you wanted to have different parsing modes, you could attach a mode attribute to the parser object and look at it later. -

    8. Using Python's Optimized Mode

    +

    8. Using Python's Optimized Mode

    Because PLY uses information from doc-strings, parsing and lexing