Write a compiler from scratch: the data structure of the symbol table for semantic analysis

The complete code for the project is C2j-Compiler Preface The files about the symbol table are in the symboltable package. Previously, we constructed a parsing table by completing a LALR(1) finite state automaton and a reduce information, and formally completed the parsing of C language. The next step is to enter the Semantic Analysis secti ...

Posted on Sun, 18 Aug 2019 06:47:49 -0700 by py343

Introduction to iOS Multithread GCD, NSTread and NSOperation

In the development of iOS, we often use multithreading to handle some business. What are the ways to implement multithreading in iOS? NSTread: The smallest, lightest, and more expensive package. GCD (Grand Central Dispatch): Internal efficiency opti ...

Posted on Sun, 18 Aug 2019 02:18:21 -0700 by zfred09

Writing 2048 Games in C Language

2048_C_code 2048 Written in C Language 1 To achieve our 2048 mini-games, we need to involve some knowledge of data structure, as well as some Linux system calls. In addition, in order to facilitate the use of character drawing on the screen, we als ...

Posted on Fri, 16 Aug 2019 05:33:05 -0700 by taquitosensei

Enhancement of C by 8 - C++.

Relationship between C Language and C++ Language C language is gradually perfected in the process of practice, there is no thoughtful design process, there are many "gray areas" in use, there are too many features of low-level language remaining, and memory operation is done directly with ...

Posted on Sun, 04 Aug 2019 19:08:07 -0700 by jwbworks

Common operations of C++ string c

Links to the original text: https://blog.csdn.net/qq_37941471/article/details/82107077 Reproduced in: https://blog.csdn.net/qq_37941471/article/details/82107077 1. The form of the constructor of st ...

Posted on Wed, 31 Jul 2019 20:54:41 -0700 by hyabusa

C language introduction part5

C language introduction part5 Key words: break and continue notes, EOF, getchar and putchar pits, scanf and getchar() pits, various classical pits (circular judgment conditions, the use of logic or symbols |, switch statements, ++, break), functions, *p++ and (*p)+++). Notes for break and continue ...

Posted on Sat, 27 Jul 2019 03:04:25 -0700 by atrocious

Operation and Control System of ONENET Cloud Platform Based on STM32

Catalog 1 Project Description 2 Project Requirements 3. Building Environment Digital Temperature and Humidity Sensor DHT11 Photosensitive Sensor MPU6050 wifi module ESP8266 OLED Screen RC522 W25Q128 SR04 Ultrasound 4 Technical Description 5 outline design 6 Interface 1 7 Interface II 8 Interface 3 ...

Posted on Sun, 21 Jul 2019 22:24:36 -0700 by artfuldrone

Regular expression use in C

Regular expressions, also known as regular and regular expressions (English: Regular Expression, often abbreviated as regex, regexp, or RE in code).Regular expressions are strings that use a single string to describe and match a sequence of strings that conform to a certain syntax rule. In the c language, regcomp, regexec, regfree, and regerro ...

Posted on Thu, 18 Jul 2019 12:05:38 -0700 by jonez

Java - Collection Framework List

The Concept of Sets In real life: a lot of things come together Sets in Mathematics: the sum of things with common attributes Collection classes in Java: A tool class, like a container, that stores any number of objects with common properties The Role of Sets Inside the class, organize the data (put them into a collection for properties th ...

Posted on Thu, 11 Jul 2019 12:18:15 -0700 by morphboy23

shell function knowledge of linux

This article is from the collation of online posts, thank you for sharing. I. Linux shell function parameters In Shell, you can pass parameters to a function when it is called. Inside the function body, the value of the parameter is obtained in the form of $n, for example, $1 for the first parameter, $2 for the second parameter ($1 for the fi ...

Posted on Fri, 05 Jul 2019 15:01:08 -0700 by MnM333