Skip to content

Conversation

@cdamezcua
Copy link

This pull request contains the implementation of a lexical analyzer for the AC language, developed as part of Activity 3.1: Lexical Analyzer (Scanner)

📦 Included Files (in labs/04/ac-lexical-analyzer-main/):

  • lex_analaizer.l: Lex file defining token rules
  • Makefile: Automates build and testing tasks
  • code_generator.py: Generates random AC programs for testing
  • test_case.ac: Manual test input file
  • README.md: User manual and documentation

🧪 Makefile Commands:

  • make → Compile the lexical analyzer
  • make run → Generate random AC input, display it, and show the resulting tokens
  • make testcase → Use test_case.ac and display both input and output tokens
  • make clean → Remove all generated files

✅ Notes:

  • Compatible with LinuxZoo/Linux Centos 7 (Python 2.7).

Student ID: A01641742

Signed-off-by: Carlos David Amezcua Canales <cdamezcua@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant