Open Bug 1037365 Opened 11 years ago Updated 3 years ago

Railroad diagrams for regular expressions

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(Not tracked)

People

(Reporter: past, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The debugger bubble popup allows the inspection of the runtime value of the hovered variable or property. It would be nice to expand it to allow inspection of regular expressions via railroad diagrams (like the ones in json.org). Such an inspection popup would also make a lot of sense in the editor, since it doesn't depend on runtime information, so that WebIDE and Scratchpad can benefit from it as well. Brackets and Atom have open-source plugins that already provide that capability: Railroad diagrams (CC0-licensed): https://github.com/tabatkins/railroad-diagrams Atom extension in CoffeeScript (MIT-licensed, uses the above): https://github.com/klorenz/atom-regex-railroad-diagrams Brackets extension in JS (MIT-licensed, uses the above two): https://github.com/warpdesign/brackets-regex-diagram
Summary: Add a railroad diagram view for regexps → Railroad diagrams for regular expressions
Depends on: dbg-inspect
Blocks: dbg-inspect
No longer depends on: dbg-inspect
Attached file Initial attempt
I've done an initial attempt at this by grabbing the files we need from the library with the brackets extension, but the results looks less than appealing (i.e. completely broken). It's like were missing some css files or something, but there are none in that library that I haven't already included. Could it be that this plugin depends on some CSS defined by atom? I've attached a zip file with my initial attempt in case anybody wants to play with it. I might give it another shot myself later, but in the meantime other people are welcome to pick this up.
Mentor: ejpbruel
Attachment #8549561 - Attachment is patch: false
Attachment #8549561 - Attachment mime type: text/plain → application/zip
Mentor: ejpbruel
Still seems relevant. I wonder if this could be in reps.
Priority: -- → P3
Product: Firefox → DevTools
Type: defect → enhancement
Priority: P3 → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: