/Pep9-Lex.Analyzer-ts

A Lexycal Analyzer for the Pep9 Assembler

Primary LanguageTypeScript

Lexycal Analyzer

A simple lexycal analyzer for the Pep9 Assembler project using Finite State Machines;

FSM Design

FSM_model

Components:

InBuffer

- the input string handler;
- has the ability to advance and backup the input;

Tokenizer

- gets a line of characters, given by the InBuffer, loops through each line (with the getToken() function) detecting and returning each token until the end of the input string;