๐
admeeer / 405-compiler Goto Github PK
View Code? Open in Web Editor NEWA compiler.
A compiler.
Lexer tokens should all be capitalized, some follow PascalCase and others are fully lowercase
Currently, symbolValue stores a char array value of whatever the value is - regardless of whether it is an int, float, or char. Instead, SymbolValue should be a union with all applicable types and the symbolTable header should be refactored accordingly.
The SymbolTable SymbolValue should be a union of structs based on different rules (variable, function, etc) that contain relevant data based on the SymbolType.
Errors that the compiler raises should be more descriptive and if applicable, more helpful.
The AST should contain a union of different structs created for each rule.
All variable declarations and functions should follow PascalCase and all parameters should follow camelCase
For more information, see https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions
Right now, errors that should return an error and exit simply state the error and try to continue compiling - this shouldn't happen.
SymbolTableExists should be refactored into a function that checks to see if a node exists - if it does, it should return a pointer to the node. If it doesn't, it should output a perror and handle it accordingly.
Then, functions that rely on SymbolTableExists should be refactored to use the new function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.