For those interested in ES5 vs ES3 … it’s ES5. Trying to parse as ES3 chokes here:
var _String_filter = F2(function(isGood, str)
{
var arr = [];
var len = str.length;
var i = 0;
while (i < len)
{| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>elm-watch garbage collection</title> | |
| </head> | |
| <body> | |
| <script> | |
| (function (scope) { |
| // https://elm.dmy.fr/?q=elm%2F | |
| // https://elm.dmy.fr/?q=elm-explorations%2F | |
| copy(Array.from(document.querySelectorAll(".pkg-summary-title a"), e => e.textContent).filter(s => s.startsWith("elm/") || s.startsWith("elm-explorations/")).join("\n")) |
For those interested in ES5 vs ES3 … it’s ES5. Trying to parse as ES3 chokes here:
var _String_filter = F2(function(isGood, str)
{
var arr = [];
var len = str.length;
var i = 0;
while (i < len)
{| module Main exposing (main) | |
| import React exposing (..) | |
| import Zod | |
| main = React.mount(render) | |
| render(model) = | |
| let | |
| (getCount, setCount) = React.useState("count", Zod.int(), 0) |
| import * as readline from "readline"; | |
| const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); | |
| const lower = new Date(process.argv[2] || "0000-01-01"); | |
| const upper = new Date(process.argv[3] || "9999-12-31"); | |
| const diff = upper - lower; | |
| function randomDate() { | |
| return new Date(lower.getTime() + Math.random() * diff); | |
| } |
| test("js-tokens example", () => { | |
| const token = { | |
| type: "StringLiteral", | |
| value: `""`, | |
| }; | |
| expect(token).toMatchInlineSnapshot(` | |
| { | |
| "type": "StringLiteral", | |
| "value": """", | |
| } |
| begin | |
| echo 'module Input' | |
| echo 'let input =' | |
| echo ' [' | |
| cat | string replace -r ^ ' ' | |
| echo ' ]' | |
| end >Input.fsx | |
| dotnet fsi ab.fsx |
| module AB exposing (main) | |
| import Browser | |
| import Html exposing (Html) | |
| import Html.Attributes | |
| import Html.Events | |
| import Input | |
| import Process | |
| import Set | |
| import Svg exposing (Svg) |
| module AB exposing (main) | |
| import Browser | |
| import Dict exposing (Dict) | |
| import Html exposing (Html) | |
| import Html.Attributes | |
| import Html.Events | |
| import Process | |
| import Svg exposing (Svg) | |
| import Svg.Attributes |