Giter Site home page Giter Site logo

garyhtou / languages-and-computation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.92 MB

Programming paradigms & features, theoretical languages, turing machines, grammars, and regular expressions.

Python 64.03% F# 35.23% C++ 0.74%
theoretical-computer-science languages computation-theory

languages-and-computation's Introduction

🧮 Languages and Computation

CPSC 3400

Topics

  • Common paradigms, features, organization, and tradeoffs of modern programming languages
    • Semantics
    • Garbage Collection
    • Memory Management
    • Type Systems
    • Compiler Design (Lexing, Parsing, Code Generation, Interpreters)
  • Theoretical foundations of languages and computation
    • Regular Expressions
    • Language Classification
    • Grammars
    • Finite State Automata (NFA/DFA)
    • Turing Machines
  • Programming using scripting languages and functional languages

Projects

🎨 Color Survey Python hw1

Tabulate the results of a survey where people were asked to vote for their top three favorite colors. The results of the survey are stored in an input file.
More information can be found here.

⏱️ Time Processor Python hw2

A program that parses a string representation of a time and returns them in a Python data structure (tuple).
More information can be found here.

♻️ Garbage Collector Python hw3

Simulation of a Mark-and-Sweep Garbage Collector with Variables, Pointers, and Heap blocks.
More information can be found here.

♾️ F# Exercises F# hw4

A collection of functions written in F# — a functional programming language. Featuring tail recursion, pattern matching, and discriminated unions.

Max Cylinder Volume

Takes in a list of floating-point tuples that represent dimensions of a cylinder and returns the volume of the cylinder that has the largest volume. Uses tail recursion.

Eliminate Consecutive Duplicates

Takes in a list of integers and eliminates consecutive duplicates; replacing them with a single instance of the value. Order is preserved and non- consecutive duplicates are unaffected. Uses tail recursion.

Binary Search Tree

An implementation of a binary search tree with insert, search, and count using a discriminated union.

More information can be found here.

➗ Algebraic Simplifier F# hw5

Simplifies an algebraic expression with recursion, pattern matching, and a discriminated union. Supports addition, subtraction, multiplication, and division.
More information can be found here.

👌 Regular Expressions and Deterministic Finite State Automata (DFA) Python hw6

  • Simple Python regular expressions
  • Deterministic Finite State Automata for accepting/rejecting strings

More information can be found here.

🎰 Turing Machines and Context-Free Grammars hw7

  • Context-Free Grammars for accepting/rejecting strings in a defined Regular Language
  • Turing Machine for accepting/rejecting strings matching a Regular Expression with backreferences
  • Turing Machine for transforming an input string

More information can be found here.

🗃️ Language Interpreter Python extra credit

A program that parses and executes a script written in a custom scripting language. This custom scripting language is composed of sequential pipelines that perform basic operations on data (similar to SQL, Awk, Sqlunk's query language, etc.). The input data is stored in a CSV file.
More information can be found here.


Assignments created by Professor Kevin Lundeen.

languages-and-computation's People

Contributors

garyhtou avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.