lorddimwit,
@lorddimwit@mastodon.social avatar

#AppleScript grammar is sorta specified in the AppleScript Language Guide but not formally.

Does anyone know if there’s a formal grammar specification for any version of AppleScript? The paper from Cook et al has a fragment of a formal grammar.

The way tokenization works with multi word commands and dictionary-specified constants and such seems relatively straightforward (basically dynamically modify the set of keywords inside tell blocks, greedily tokenize heads).

#programming #compilers

  • All
  • Subscribed
  • Moderated
  • Favorites
  • MacAutomation
  • kavyap
  • GTA5RPClips
  • Durango
  • ethstaker
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • tacticalgear
  • JUstTest
  • cubers
  • normalnudes
  • anitta
  • tester
  • khanakhh
  • osvaldo12
  • InstantRegret
  • modclub
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines