Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notes on chapter 7 (regular expressions) #44

Open
gvwilson opened this issue May 26, 2023 · 0 comments
Open

notes on chapter 7 (regular expressions) #44

gvwilson opened this issue May 26, 2023 · 0 comments

Comments

@gvwilson
Copy link
Owner

  • first I was confused by the DOM example with regular expressions (I thought HTML required a regular language to parse and not a regular grammar)
  • but section 7.2 explains that it's just an example to show recursive parsing, which makes sense
  • it uses some import Alt from syntax, maybe that's something I want to learn. Is that ES modules? Or a Node thing?
  • why isn't the Javascript using semicolons? is that a best practice now?
  • TIL about class X extends Y, looks like Javascript got classes in 2015. Interesting!
  • export default (chars) => new RegexLit(chars) is interesting, I didn't know you could do that with exports.
  • does this matching algorithm have a name? I felt kind of unmoored without knowing what this algorithm is called or what family of algorithms it belongs to.
  • I was a bit confused by the design patterns, I didn't recognize them. I might just not be a design pattern person though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant