問題一覧
1
first phase of a compiler
lexical analysis
2
takes the modified source code from language preprocessors that are written in the form of sentences
lexical analysis
3
breaks these syntaxes into a series of tokens by removing white space or comments in the source code
lexical analyzer
4
sequence of characters (alphanumeric) in a token
lexemes
5
some predefined rules for every lexeme to be identified as a valid token
lexemes
6
basic abstract unit of meaning
lexemes
7
an object that represents something else
token
8
different types of tokens
keywords, operators, strings, Constants, special symbols, identifiers
9
predefined or reserved words in a programming language
keywords
10
used as the general terminology for naming of variables, functions and arrays
identifiers
11
their values can't be modified by the program once they are defined
Constants
12
refer to fixed values
Constants
13
also called as literals
constants
14
an array of characters ended with a null character
strings
15
always enclosed in double quotes
strings
16
used in programming languages having some special meaning
special symbols
17
special symbols
brackets, parentheses, braces, comma, semi colon, asterisk
18
used as array element reference
brackets
19
used to indicate function calls and function parameters
parentheses
20
Mark the start and end of a block code
braces
21
used to separate more than one statements
comma
22
operator that essentially invokes an initialization list
semi colon
23
create pointer variable
asterisk
24
symbols that trigger an action when applied to variables and other objects
operators
25
require only single operand
unary operators
26
require two operands
binary operators
27
requires three operands
ternary operators
28
notations for describing a set of character strings
regular expressions
29
used in search engines, search and replace dialogues of word processors
regular expressions
30
match zero or more quantifier
asterisk
31
match one or more quantifier
Plus sign
32
match 0 or 1 quantifier
question mark
33
gives special meaning to the character following it
backslash
34
matches any character except the new line symbol
period
35
anchor for the start of the string or negation symbol
caret
36
match a single character
square brackets
37
anchor for the end of the string
dollar sign
38
separates a series of alternatives
or sign
39
used as range quantifiers
curly brackets
40
used for grouping characters or regular expressions
parentheses
41
indicates a range in character class
minus sign
42
formal language used to communicate algorithms both from programmer to programmer and from programmer to machine
programming language
43
set of symbols and rules for forming terms
syntax
44
The rules for transforming terms to terms
semantics
45
using the particular constructs of the language
pragmatics
46
define as a set of strings of symbols that may be constrained by specific rules
language
47
can generate context-free languages
context-free grammar