Scanner
A small scanner built around structured input.
View sourceSCANNERLOCAL CLI RUN
capture-demo.pm: 1: keyword 'PROGRAM' found
capture-demo.pm: 1: identifier 'demo' found
capture-demo.pm: 2: keyword 'BEGIN' found
capture-demo.pm: 3: identifier 'count' found
capture-demo.pm: 3: operator '=' found
capture-demo.pm: 3: integer '3' found
capture-demo.pm: 3: operator '+' found
capture-demo.pm: 3: integer '4' found
capture-demo.pm: 4: keyword 'WRITE' found
capture-demo.pm: 4: operator '(' found
capture-demo.pm: 4: string "hello" found
capture-demo.pm: 4: operator ')' found
capture-demo.pm: 5: keyword 'END' found
no errors
Actual local run of the P- lexical scanner. Demonstration input and emitted tokens; this is a command-line transcript, not a graphical interface.
Actual local scanner output for the linked demonstration input. This records tokenization, not execution of the scanned program.
01 / The problem
Scanning tools turn input into a form that later processing can inspect.
02 / The build
A C repository with a Makefile-based build and a structured scanning workflow. Its public README describes input analysis and modular organization.
Learn More03 / The takeaway
The source and build files are the artifact. The README leaves additional stack details unspecified, so they are omitted here.