Software Engineering Flashcards
IDE
Integrated Development Environment; Provides programmers with tools that are needed to create computer programs
Debugger tools
A range of facilities enabling the programmer to investigate conditions when errors occur e.g. break points, watch window
Source code
editor
Allows programmers to enter and edit code
Syntax error detection
Highlighting syntax errors before code is translated
Intellisense
Predictive text for programmer to help with correct use of commands and variable names
Error diagnostics
Helps the user to identify compilation errors (syntax errors)
Trace/stepping
Showing which lines of code are executed in which sequence
Breakpoint
Allow program stop at certain point to check values of variables against expected ones
Variable watch
Tracking a variable’s value as code is executed
Compiler
Provides programmer tools to convert the source code into machine code so program can run outside the development environment.
(Lexical/Syntax/Semantic Analysis and Code Generation)
Automatic formatting
Correctly indents code
Lexical Analysis
Converts input stream into tokens
Comments and unneeded space removed
Error messages are generated if needed
Syntax Analysis
Symbol table/dictionary produced
Tokens checked for fit to the grammar using BNF-type rules.
If not, error messages produced.
Semantic Analysis
Checks all variables are declared and used.
Checks that variables have right data type (real number as integer).
Checks that operation is legal for type/no mixed mode arithmetic.
Code generation
Machine code is generated
Code optimisation may be employed