Giter Site home page Giter Site logo

tlaceby / guide-to-interpreters-series Goto Github PK

View Code? Open in Web Editor NEW
181.0 15.0 28.0 67 KB

Contains source-code for viewers following along with my Beginners Guide To Building Interpreters series on my Youtube Channel.

Home Page: https://www.youtube.com/playlist?list=PL_2VhOvlMk4UHGqYCLWc6GO8FaPl8fQTh

TypeScript 100.00%
ast ast-parser javascript lexer programming-language tokenizer typescript

guide-to-interpreters-series's People

Contributors

bitpigeon avatar fortygazelle700 avatar ljayatrabbit avatar tlaceby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guide-to-interpreters-series's Issues

Request support for token start, end locations.

Currenly there is no support for to determine an identifires position and location like line and column for the future error reporting. Please show us a way to do that. By looking at the acorn parser looks confusing.
image

Import statements, classes, arrays & types. FR.

Import & export are a big deal in code land, was wondering if you were planning on including these in the series.

Same for classes / arrays and types(: String, : Int, etc)

Thanks for these series, it's been very assisting in understanding an interpreter/compiler and how to make one.

classes:
properties inside classes act as object keys?

class Animal {}

imports:
importing only from string or with from/select

import "./some-file.txt";
import { someFunc } from "./some-other-file.txt";

exports:
export functions so they can be imported

export func handyFunc () {}

types:
only in special file types like file.t.txt

const numericVal: int = 123; // or : num / : number
const stringVal: char = "abc"; // or : str / : string

arrays:
some variable containing an array

const list = [];
const filledList = [1,2,3];

etc. etc.

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.