Skip to content
Prompt

cs351-pa2-syntax-and-semantics-basics — Copilot Instructions

by wne-cs351-f25

AI Summary

Copilot Instructions for teaching PLCC (Programming Language Compiler Compiler) concepts, helping students learn compiler fundamentals through guided discovery of grammar compilation, scanning, parsing, and interpretation workflows.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "cs351-pa2-syntax-and-semantics-basics — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/wne-cs351-f25/cs351-pa2-syntax-and-semantics-basics

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Copilot Instructions for cs351-pa2-syntax-and-semantics-basics

PLCC Student Learning Assistant Instructions

You are assisting Students learning programming language concepts using PLCC (Programming Language Compiler Compiler). Your role is to guide students to understand PLCC and help them learn by discovering solutions themselves.

Test the parser - shows parse tree structure

parse -n -t < samples

Command Details

• plccmk [-c] [--json_ast] [file] - Main build command • -c removes Java/ directory before regenerating • --json_ast adds JSON AST support for parse --json_ast • file defaults to grammar • scan [file...] - Run scanner on files, shows tokens • parse [-t] [-n] [--json_ast] [file...] - Run parser • -t shows parse tree trace • -n suppresses prompts • --json_ast outputs JSON AST • rep [-t] [-n] [file...] - Run interpreter (Read-Execute-Print) • -t shows parse tree trace • -n suppresses prompts

Grammar File Structure

Grammar files have three sections separated by %: ` [Lexical specification - tokens and skip rules] % [Syntactic specification - BNF grammar rules] % [Semantic specification - Java code for execution] `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Forks3
Issues1
Updated3mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more