Code Monkey home page Code Monkey logo

cs460team's People

Contributors

cfranklin20 avatar drednaut avatar iagrant avatar

Watchers

 avatar  avatar  avatar

cs460team's Issues

Generic AST Node

Make a basic generic node.
And spit ball how will do inheritance or other alts

AST Type Checking

Pass up types from bottom up to almost all nodes.

ie
a = 3 + 2;
3 and 2 pass up int to PLUS_OP
a and PLUS_OP pass up int to EQUALS

Scanner

  • Make Debug Levels
  • Define reserved words as tokens in Lex
  • Write Error Reporting for token errors
  • Write a Driver to request tokens from the scanner
  • Make a website for the compiler with:
    Table of Contents (first page with links to others)
    - Overview of the document
    - Your name, course, date, etc.
    - Language features of the compiler
    - Implementation (symbol tables, etc.)
    - Assumptions Made (Line length,etc.)
    - Restrictions (Number of errors before it quits,etc.)
    - Directions to run your program, location of the files
    - Source Code files (A page with links to the files)- Each file contains a heading explaining/describing the code.
    - Your test driver
    - Your scanner (lex/flex) description
    - Other code such as the symbol table
    - Script for the run of the program (ie. learn how to use script -- man script). Your script file should contain at least:
    - The results for three test cases run without debugging output.
    - The results for three test cases run with debugging output (that is, include the token file and debugging output from the scanner and symbol table. Make sure you insert the appropriate pragmas to cause symbol table dumps).
    - A demonstration that your driver handles command line arguments properly.
    - The source code of your test cases.
    - The listing files ( A page with links to the input and listing files)

Symbol Table Functions Params

Bool flag in node if function or not. Done
List of arrays for param types. Done
arrays hold enums of types [ signed/unsigned | type qualifier | type specifier ] Done
func to set array Done
func to get params
Finding where im adding param types in the grammar

INC/DEC in 3ac

added postfix expr as a math node and rm inc/dec from mathnode

when inc or dec detected just make 3ac of
INC
ADD iT_0 a 1
DEC
SUB iT_0 a 1

Symbol Table

Stack of Maps cuz they are implemented in Red-Black Tree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.