semantic analysis

Semantic Analysis Semantic analysis is the phase in which the compiler adds semantic information to the parse tree and builds the symbol table.This phase performs semantic checks such as type checking (checking for type errors), or object binding (associating variable and function references with their definitions), or definite assignment (requiring all local variables to be …

token.phrase.structure.grammar.syntax.

Token. something serving as an indication,proof,or expression of something else. Phrase. Two or more words in sequence that form a syntactic unit that is less than a complete sentence. Structure. mode of arrangement of parts. Grammar. The elements of any science , art , or subject. Syntax. The study of rules for the formation of …

object oriented programming

Class Definition Related div.entry h2.title, div.entry h1.title { padding-bottom: 22px; background-color: #4e9258 ; font-family: serif; font-size:150%;} Object-oriented programming (OOP) is a programming paradigm that uses “objects” – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs Reference/Source: http://en.wikipedia.org/wiki/Object-oriented_programming Code Exposition p.first{ color: blue; } p.second{ …

gcc limits and -Wformat

#include <stdio.h> #include <limits.h> int main (void) { unsigned long ul = LONG_MAX; short int si = SHRT_MIN; printf (“%d\n”, ul); printf (“%s\n”, si); return 0; } $gcc printme.c $./a.out -1 Segmentation fault $gcc printme.c -Wformat printme.c: In function ‘main’: printme.c:7: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’ …

Languages

There are three types of languages: 1. Imperative. 2. Functional. 3. Logical. In computer science, imperative programming is a programming paradigm that describes computation in terms of statements that change a program state. In much the same way that imperative mood in natural languages expresses commands to take action, imperative programs define sequences of commands …