Regular Expression

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Regular Expression

 Identifier:
(L|_)(L|_|D|@)*(D|_)
 Numbers:
[+-]?(D+)(\.D+)?(e+D+)?
 Keywords:
(loop | do-loop | tour | iff | iff-else | input-> | output<- |using
| namespace | bool | switch | case | public | private | class
| struct | static | void | int | float | double | char | pointer | null
| true | false | include | main | return | delete | string | asm
| else | new | this | auto | enum | operator | throw | explicit
| break | export | protected | try | extern | typedef | catch
| typename | union | friend | short | unsigned | goto | signed
| continue | sizeof | virtual default | inline | delete | volatile
| do | long | template)
 Punctuations:
( [ | ] { | } (|) )
 Operators:
+(+)?(=)? | -(-)? | <(>)?(=)? | =(=)? | >(=)? | :(=)?
| !(=)? | * | / | && | || | %

You might also like