Skip to content

Commit

Permalink
Merge pull request DoctorWkt#32 from timgates42/bugfix_typo_identifier
Browse files Browse the repository at this point in the history
docs: fix simple typo, identifer -> identifier
  • Loading branch information
DoctorWkt authored Dec 11, 2021
2 parents cb250ed + 08024e2 commit 1410cf5
Show file tree
Hide file tree
Showing 78 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion 06_Variables/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void semi(void) {
match(T_SEMI, ";");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 07_Comparisons/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void semi(void) {
match(T_SEMI, ";");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 08_If_Statements/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 09_While_Loops/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 10_For_Loops/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 11_Functions_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 12_Types_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 13_Functions_pt2/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 14_ARM_Platform/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 15_Pointers_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 16_Global_Vars/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ call `global_declarations()`:
### `var_declaration()`

The parsing of functions is much the same as before, except the code
to scan the type and identifer are done elsewhere, and we receive the
to scan the type and identifier are done elsewhere, and we receive the
`type` as an argument.

The parsing of variables also loses the type and identifier scanning code.
Expand Down
2 changes: 1 addition & 1 deletion 16_Global_Vars/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 17_Scaling_Offsets/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 18_Lvalues_Revisited/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 19_Arrays_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 20_Char_Str_Literals/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 21_More_Operators/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 23_Local_Variables/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 24_Function_Params/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 25_Function_Arguments/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 26_Prototypes/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 27_Testing_Errors/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 28_Runtime_Flags/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 29_Refactoring/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
4 changes: 2 additions & 2 deletions 30_Design_Composites/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ After modifying and compiling the above program a few times, the answers are:
+ We can't redeclare `enum fred`. This seems to be the only place where
we need to remember the name of an enum list.
+ We can reuse the enum list identifer `fred` as a variable name.
+ We can't reuse the enum value identifer `mary` in another enum list,
+ We can reuse the enum list identifier `fred` as a variable name.
+ We can't reuse the enum value identifier `mary` in another enum list,
nor as a variable name.
+ We can assign enum value anywhere: they seem to be treated simply as
names for literal integer values.
Expand Down
2 changes: 1 addition & 1 deletion 30_Design_Composites/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 31_Struct_Declarations/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 32_Struct_Access_pt1/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a struct (or a union, later),
// Check that the identifier has been declared as a struct (or a union, later),
// or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 32_Struct_Access_pt1/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a struct (or a union, later),
// Check that the identifier has been declared as a struct (or a union, later),
// or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 32_Struct_Access_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 33_Unions/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 33_Unions/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 34_Enums_and_Typedefs/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 34_Enums_and_Typedefs/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 35_Preprocessor/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 35_Preprocessor/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 36_Break_Continue/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 36_Break_Continue/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 37_Switch/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 37_Switch/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 38_Dangling_Else/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 38_Dangling_Else/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
2 changes: 1 addition & 1 deletion 39_Var_Initialisation_pt1/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static struct ASTnode *member_access(int withpointer) {
struct symtable *typeptr;
struct symtable *m;

// Check that the identifer has been declared as a
// Check that the identifier has been declared as a
// struct/union or a struct/union pointer
if ((compvar = findsymbol(Text)) == NULL)
fatals("Undeclared variable", Text);
Expand Down
2 changes: 1 addition & 1 deletion 39_Var_Initialisation_pt1/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void rparen(void) {
match(T_RPAREN, ")");
}

// Match an identifer and fetch the next token
// Match an identifier and fetch the next token
void ident(void) {
match(T_IDENT, "identifier");
}
Expand Down
Loading

0 comments on commit 1410cf5

Please sign in to comment.