Gradually Typed C Compiler
A compiler front-end built with Flex and Bison supporting gradual typing, lexical parsing, AST generation, and type inference with comprehensive error handling.
Flex & BisonLexical AnalysisAST GenerationType InferenceError Handling
C Code Input
Parse Results
Enter C code and click "Parse Code" to see results
Compiler Features
Lexical Analysis
Tokenizes C source code using Flex, identifying keywords, operators, literals, and identifiers.
AST Generation
Builds Abstract Syntax Trees using Bison parser with proper precedence and associativity rules.
Type Inference
Supports gradual typing with automatic type inference for variables and expressions.
Error Handling
Comprehensive syntax error detection with detailed error messages and line numbers.