Version | Link |
---|---|
ECMAScript 2015 - ES2015 - ES6 | All Features List |
ECMAScript 2016 - ES2016 - ES7 | All Features List |
ECMAScript 2017 - ES2017 - "ES8" | All Features List |
ECMAScript 2018 - ES2018 - "ES9" | All Features List |
ECMAScript 2019 - ES2019 - "ES10" | All Features List |
ECMAScript 2020 - ES2020 - "ES11" | All Features List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Break down linear IR into basic blocks and construct CFG. | |
// Just a naive program to teach myself datalog and Souffle. | |
.type Address <: number | |
// A sequential instruction, i.e. one that does not change control flow. | |
// Don't bother describing operands as we're only interested in control flow here. | |
// (ALU, load, store) | |
.decl seq(address:Address) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @author William Santos | |
* | |
* Below is a 6 instruction assembly language simulator written in Javascript | |
* using only arrow functions and ternary operators. | |
* There is no point in an assembler here since the assembly program to be | |
* executed has to be composed as a recursive linked list of instructions | |
* - which are, of course, each constructed using explicit function calls. | |
* | |
* How it works: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nodes = [ | |
{ | |
links: [ 1 ], // node 0 is linked to node 1 | |
visited: false | |
}, { | |
links: [ 0, 2 ], // node 1 is linked to node 0 and 2 | |
path: [], | |
visited: false | |
}, | |
... |