Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3334802
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:56:43+00:00 2026-05-17T23:56:43+00:00

I am going to write a JavaScript parser, I would like a set of

  • 0

I am going to write a JavaScript parser, I would like a set of test cases, i.e., things that should parse into what (and possibly things that should not parse) that I can throw at my parser to test its correctness. I don’t want to test running of JavaScript, just parsing.

I am reading through the ECMAScript spec and creating a set of test-cases from that, but if someone’s already done it, that’s great.

I also had a look at the V8 and SpiderMonkey sources for test cases but, apart from being baffled by the hand-coded parsers, the parse tests seem to be combined with evaluation tests.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:56:44+00:00Added an answer on May 17, 2026 at 11:56 pm

    I can give you two starting points, from two recent projects:

    A couple of months ago, Peter van der Zee (aka @kuvos) made an ECMAScript 5 parser, his parser includes some syntax-dedicated tests and a fuzzer, jsfunfuz by Jesse Ruderman.

    Check EsParser.js (look for the EsParser.testSuite function) to find some of those tests.

    There’s other ECMAScript 5 parser written in ECMAScript, this one if from the Google’s ES-Lab project, they have also a good set of syntax-oriented unit tests that you can find here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm curious what's the view on things that compile into javascript e.g. GWT, Script#
I'm going to go old school on JavaScript and write a BASIC.js that contains
I'm sure I'm going to have to write supporting javascript code to do this.
I am going to be using C/C++, and would like to know the best
I am working on implementing a JavaScript web bug that will be inserted into
I am going to write a database application for the camp I work for.
I've got a bunch of properties which I am going to use read/write locks
Can anyone explain whats going on 'under the hood' with textRanges in IE/javascript? What
I'm using the FireFox API to write to a binary file from my JavaScript
I need to write a script that takes a link and parses the HTML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.