/AnalyzerC

Syntactic analyzer made in Java that takes as input a program written in C and analyzes the tokens using deterministic finite automata (DFA).

Primary LanguageJavaMIT LicenseMIT

Analyzer

A little parser made with automatons

GitHub Header

The program takes as input a program written in Java and parses it lexically using deterministic finite automata (DFA), the program parses the following:

  • Correct closing of comments
  • Correct structure of an identifier in Java
  • Correct structure of a number according to its base (decimal, octal or hexadecimal)
  • Proper use of periods in numerical notation

The program parses the file and displays the lines that contain errors in a small console


GitHub Header