From dfbce8112dca28bc3001b5cd3241d71cb2e651a1 Mon Sep 17 00:00:00 2001 From: Mateo Gonzales Navarrete <38146507+mgonnav@users.noreply.github.com> Date: Sat, 16 May 2020 21:54:22 -0500 Subject: [PATCH] Fixed typos --- docs/dev-docs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/dev-docs.md b/docs/dev-docs.md index 1d7aa6c..00050dd 100644 --- a/docs/dev-docs.md +++ b/docs/dev-docs.md @@ -31,9 +31,9 @@ This section contains information about how to extend this parser with new funct ### Implementing a new Statement -Create a new file and class in `src/sql/` or extend any of the existing Statements. Every statement needs to have the base class SQLStatement and needs to call its super constructor with its type. If your defining a new statement type, you need to define a new StatementType in `SQLStatement.h`. +Create a new file and class in `src/sql/` or extend any of the existing Statements. Every statement needs to have the base class SQLStatement and needs to call its super constructor with its type. If you're defining a new statement type, you need to define a new StatementType in `SQLStatement.h`. -It is important that you create an appropriate constructor for your statement that zero-initializes all its pointer variables and that your create an appropriate destructor. +It is important that you create an appropriate constructor for your statement that zero-initializes all its pointer variables and that you create an appropriate destructor. Finally you will need to include your new file in `src/sql/statements.h`. @@ -50,9 +50,9 @@ src/parser/sql_keywords.txt To extend the grammar the file you will mostly have to deal with is the bison grammar definition in `src/parser/bison_parser.y`. -If your extending an existing statement, skip to the non-terminal definition for that statement. I.e. for an InsertStatement the non-terminal insert_statement. +If you're extending an existing statement, skip to the non-terminal definition for that statement. I.e. for an InsertStatement the non-terminal insert_statement. -If your defining a new statement, you will need to define your type in the \%union directive `hsql::ExampleStatement example_stmt`. Next you need to associate this type with a non-terminal `\%type example_statement`. Then you have to define the non-terminal `example_statement`. Look the other non-terminals for statements to figure out how. +If you're defining a new statement, you will need to define your type in the \%union directive `hsql::ExampleStatement example_stmt`. Next you need to associate this type with a non-terminal `\%type example_statement`. Then you have to define the non-terminal `example_statement`. Look the other non-terminals for statements to figure out how.