当前位置:网站首页>ECMA 262 12 Lexical Grammer
ECMA 262 12 Lexical Grammer
2022-07-25 22:24:00 【你回到了你的家】
8 Literals
8.5 Regular Expression Literals
A regular expression literal is an input element that is converted to a RegExp object (see 22.2) each time the literal is evaluated. Two regular expression literals in a program evaluate to regular expression objects that never compare as === to each other even if the two literals’ contents are identical. A RegExp object may also be created at runtime by new RegExp or calling the RegExp constructor as a function (see 22.2.3).
下面的productions描述了regular expression literal的语法 and are used by the input element scanner to find the end of the regular expression literal. The source text comprising the RegularExpressionBody and the RegularExpressionFlags are subsequently parsed again using the more stringent ECMAScript Regular Expression grammar (22.2.1).
An implementation may extend the ECMAScript Regular Expression grammar defined in 22.2.1, but it must not extend the RegularExpressionBody and RegularExpressionFlags productions defined below or the productions used by these productions.
语法
R e g u l a r E x p r e s s i o n L i t e r a l : : / R e g u l a r E x p r e s s i o n B o d y / R e g u l a r E x p r e s s i o n F l a g s RegularExpressionLiteral::\\\qquad / \enspace RegularExpressionBody\enspace / \enspace RegularExpressionFlags RegularExpressionLiteral::/RegularExpressionBody/RegularExpressionFlags
R e g u l a r E x p r e s s i o n B o d y : : R e g u l a r E x p r e s s i o n F i r s t C h a r R e g u l a r E x p r e s s i o n C h a r s RegularExpressionBody::\\\qquad RegularExpressionFirstChar \enspace RegularExpressionChars RegularExpressionBody::RegularExpressionFirstCharRegularExpressionChars
R e g u l a r E x p r e s s i o n C h a r s : : [empty] R e g u l a r E x p r e s s i o n C h a r s R e g u l a r E x p r e s s i o n C h a r RegularExpressionChars::\\ \qquad \text{[empty]} \\\qquad RegularExpressionChars\enspace RegularExpressionChar RegularExpressionChars::[empty]RegularExpressionCharsRegularExpressionChar
边栏推荐
- Build commercial projects based on ruoyi framework
- MapGIS格式转ArcGIS方法
- ML-Numpy
- 核电站在席卷欧洲的热浪中努力保持安全工作
- 聚名十年,说出你的故事,百万豪礼等你拿
- VIM usage record
- mysql: error while loading shared libraries: libncurses.so. 5: cannot open shared object file: No suc
- Imitation Tiktok homepage interface
- Xiaobai programmer day 8
- QML module not found
猜你喜欢

LabVIEW 开发 PCI-1680U双端口CAN卡

力矩电机控制基本原理

Don't know mock test yet? An article to familiarize you with mock

On the difference between break and continue statements

Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin

Wechat card issuing applet source code - automatic card issuing applet source code - with flow main function

Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)

Victoriametrics single node of kubernetes

TFrecord写入与读取

分享两个音乐播放地址
随机推荐
H5 lucky scratch lottery free official account + direct operation
Redis foundation 2 (notes)
Win10 set up a flutter environment to step on the pit diary
Selenium basic use and use selenium to capture the recruitment information of a website (continuously updating)
Output Yang Hui triangle with two-dimensional array
Why does redis choose single thread?
Leetcode 106. 从中序与后序遍历序列构造二叉树
英文术语对应的解释
Can I buy financial products with a revenue of more than 6% after opening an account
Xiaobai programmer's fourth day
ArcGIS10.2配置PostgreSQL9.2标准教程
数学规划分类 Math Programming Classfication
分割金条的代价
Arcgis10.2 configuring postgresql9.2 standard tutorial
Visitor mode
Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin
3dslicer importing medical image data
3day
什么是类加载?类加载的过程?
Redis memory elimination mechanism?