Git Product home page Git Product logo

axl's Introduction

Axl

An interpreter for a customized language: AXL

  • abstract.py: class definitions for Abstract Sytax Trees (ASTs)
  • axl.py: the main file containing the parser and interpreter
  • exceptions.py: definitions of various exception types used by AXL
    • OutputException: used to alter control flow when returning a value
    • SkiploopException: used to alter control flow when breaking out of a loop
    • EndloopException: used to alter control flow when continuing to the next iteration of a loop
    • LexerException: raised when an error occurs during reading of the text
    • ParserException: raised when an error occurs during parsing of the text
    • QueryException: raised when an error occurs during evaluation of a query expression
  • lexer.py: definitions for Lexer class which generates tokens from the text
  • pattern.py: class definitions for ASTs related to pattern matching
  • query.py: class definitions for ASTs related to query expressions
  • syntax.txt: explanations of how to use AXL's syntax
  • testfiles: samples of AXL code to demonstrate its syntax and features
    • basic: variable definitions, basic expressions, calling builtin functions
    • advanced: function definitions, loops, recursion, conditionals, higher-order-functions
    • functional: higher-order-functions, currying, staging, CPS (work in progress)
    • patterns: pattern matching with lists, strings, literals, wildcards, unions and variables
    • queries: file I/O, query expressions
  • textfiles: .txt files used by testfiles to demonstrate file I/O

Axl interpreter written in Python using version 3.10.0a6, which includes pattern matching. Previous versions of Python will be unable to run Axl since they do not include pattern matching.

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.