当前位置:网站首页>ECMA 262 12 Lexical Grammer
ECMA 262 12 Lexical Grammer
2022-07-25 22:30:00 【You came back to your home】
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).
Below productions It describes regular expression literal The grammar of 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.
grammar
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
边栏推荐
- Visitor mode
- Interpretation of the source code of all logging systems in XXL job (line by line source code interpretation)
- Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)
- SQL basic statement DQL select and extract DML insert delete
- What is class loading? Class loading process?
- 编译器引论
- [database learning] redis parser & single thread & Model
- Learning orientation today
- 平台架构搭建
- Wechat official account application development (I)
猜你喜欢
随机推荐
Ffmpeg plays audio and video, time_ Base solves the problem of audio synchronization and SDL renders the picture
Perform Jieba word segmentation on the required content and output EXCEL documents according to word frequency
Common source code for ArcGIS development
ECMA 262 12 Lexical Grammer
【集训DAY12】X equation 【高精度】【数学】
Wkid in ArcGIS
LabVIEW develops PCI-1680U dual port can card
ML-Numpy
【集训DAY13】Out race【数学】【动态规划】
Win10 set up a flutter environment to step on the pit diary
Smart S7-200 PLC channel free mapping function block (do_map)
Usage of in in SQL DQL query
About vscode usage+ Solutions to the problem of tab failure
What is the difference between minor GC and full GC?
编译和反编译
(1) Integrating two mapping frameworks of Dao
If it is modified according to the name of the framework module
Xiaobai programmer's first day
Formal parameters, arguments and return values in functions
MapGIS格式转ArcGIS方法









