SIM File Structure Analysis (example of C language)

Source: Internet
Author: User

All. h files correspond to the corresponding. c files, external definitions of. h files, and. c files are specifically implemented.

Clang.l:lex file itself to the C language identifier lexical analysis;

Add_run.h: the Add_run () function will store the number of tokens identified by the matching code snippet and the same token in the array token_array[];

algollike.h Files: Define Non_finals, Non_initials, openers, closers four sets of tokens; be language.h is called;

Compare.h file: Each new text and corresponding text to identify, the results of the operation and the input file corresponding location stored in the Aiso heap, which is compared with LCS (the longest common sub-sequence) to judge;

Debug.h file: Debug output;

Error.h file: Error message;

Fname.h file: file format conversion;

ForEachFile.h files: Eliminate the spaces, line breaks, tabs, and annotations in each file;

hash.h File: Create and Access forward_reference[], use the hash index method to speed up the oldest string algorithm rate;

idf.h files: Keywords (identifiers and numbers) linked list definitions;

Lang.h file: Provides the lowest level of access token routines and data, which is implemented from one of the * LANG.L files.

Language.h file: A language definition routine for abstract classes that describes the nature of some languages;

Lex.h file: Count all kinds of tokens, service macro for *LANG.L file;

Malloc.h file: The file's Malloc[ch] provides several features:

-Check for "Out of Memory": Simplified programming

-Use assigned new (type) "," "Memory"

-Detect memory leaks: Get a cleaning program

-Freshly tumbled allocated memory: Get a more secure solution;

Newargs.h file: Reclaim space;

Options.h files: Setting and Consulting command-line options;

Pass1.h file: Reads the input file, stores the token in Token_array [], and stores the input description file in the structure text[];

Pass2.h file: Determines the start and end for each run;

Pass3.h file: print running content;

Percentage.h file: Calculates the percentage and reads the input file two times. This makes it impossible to use struct text-s to present files that run as identities, because their first and second scans are different from one another. Determine the specific item storage from the structure text-s;

Runs.h file: Read file;

Sim.h File: Call the comparison to distinguish two files, and show the similarity degree;

stream.h file: The interaction module of direct and lexical is realized;

Text.h file: Access to the word scanner is implemented. In addition, the module attempts to save line feed information, and only the second scan is interested in this information;

Token.h file: Token interface, defining and converting tokens;

Tokenarrary.h file: Token storage interface.


all. h files correspond to the corresponding. c files, external definitions of. h files, and. c files are specifically implemented.

SIM File Structure Analysis (example of C language)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.