Skip to content

A hybrid project for lexical and syntax analysis: the lexer is written in JavaScript and the parser in Java. Designed to demonstrate basic concepts in compiler design and programming language theory.

License

Notifications You must be signed in to change notification settings

islamMendjel/Lexa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Lexa Analyzers πŸ”

This project contains two main components:

  • Lexical Analyzer (JavaScript): lexical_last.js
  • Syntax Analyzer (Java): AnalyseSen.java

Designed as a foundational project for understanding compiler construction principles including tokenization and parsing.


πŸ“ Project Structure

Compilation/ β”œβ”€β”€ lexical/lexical_last.js # JavaScript-based lexical analyzer β”œβ”€β”€ syntax/src/syntax/AnalyseSen.java # Java-based syntax analyzer


πŸš€ How to Run

1. Lexical Analyzer (JavaScript)

To run the lexical analyzer:

node lexical_last.js
  1. Syntax Analyzer (Java) To compile and run the syntax analyzer:
javac AnalyseSen.java
java AnalyseSen

πŸ›  Features Token detection and classification

Syntax verification (basic parsing)

Console-based input/output

About

A hybrid project for lexical and syntax analysis: the lexer is written in JavaScript and the parser in Java. Designed to demonstrate basic concepts in compiler design and programming language theory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published