Computer Science: Programming, Parsing, and Data Types Concepts

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Bindings

Can be both implicit and explicit

2
New cards

Static, Dynamic and automatic

Examples of storage class

3
New cards

Colorless green ideas sleep furiously

A sentence composed by Noam Chomsky in 1957 as an example of a sentence whose grammar is correct but whose meaning is nonsensical.

4
New cards

Bottom-up parser

Constructs derivations and parse trees from the leaves to the roots

5
New cards

Parsing phase

The phase in which a compiler processes the tokens, determining the program's syntactic structure.

6
New cards

Symbol table operations

Must support insertion, lookup, deletion, and all of the above

7
New cards

Allocations on the heap

Dynamic

8
New cards

Start symbol

Represents the entire top-level phase being defined in a grammar

9
New cards

Literal

Representation of characters or digits

10
New cards

Metasymbols

Symbols used to describe the grammar rules

11
New cards

Data type definition concepts

Valid value and valid operations

12
New cards

Function name overloading

Name resolution can be determined based upon the only type of parameters

13
New cards

Fixed format

A language in which tokens must occur in prespecified locations on the line or page

14
New cards

Parse tree

The graphical description of the replacement process in a derivation of a grammar

15
New cards

Static constant

Can have its values corrupted at local times

16
New cards

Compiler

Translates an entire program into executable code and does not execute it

17
New cards

Importance of distinct data types

Operation might not get executed

18
New cards

Ways to specify semantics

All of the above: formal definition, language reference manual

19
New cards

Predefined types

Those types supplied with a language, from which all other types are constructed

20
New cards

Semantics

What the language constructs actually do

21
New cards

Recursive type

A type that uses itself in its declaration

22
New cards

Token delimiter

Formatting that affects the way tokens are recognized

23
New cards

Type checking

The process a translator goes through to determine whether type information in a program is consistent

24
New cards

Ambiguous grammar

When grammar allows two distinct parse or syntax trees

25
New cards

Static binding

Occurs before execution

26
New cards

Symbol table

Binds names to values

27
New cards

Allocation locations

The stack and the heaps are not the only places an allocation location for a variable may exist

28
New cards

Immutable objects

Never change state

29
New cards

Dynamic binding

Happens before execution