`
linguagem
` `
topico
` `
nome
`Javascript ECMA-262`
` `
titulo
`Teste Javascript: Diagrama Sintático - Diagrama de Sintaxe, BNF, Comandos, Exemplos`
` `
descritor
`apoie, apoie.org, Javascript, script, statementBlock, statement, ifStatement, forStatement, expr, Comando, BNF, Diagrama Sintático - Diagrama de Sintaxe, Exemplo, Comandos, Linguagem, Filtro, xml, sintaxe, sintaxe original, desenho, programação`
` `
lead
`Sintaxes (
ECMA-262
) representadas por
Diagrama Sintático - Diagrama de Sintaxe
gerados a partir de
BNF
,
Índice
,
Guia de visualização rápida
e
Exemplos.
`
` `
link
`
Cheat-sheet
`
` `
origem
`Javascript.xml`
` `
referencia
`~DSGerador~
Referência rápida (Cheat Sheet)
`
` `
fonte
`
Fonte
`
` `
` `
topico
` `
titulo
`Program`
` `
bnf
`[SourceElement+]`
` `
desc
`
`
` `
` `
topico
` `
titulo
`SourceElement`
` `
bnf
`Statement | FunctionDeclaration`
` `
desc
`
`
` `
` `
topico
` `
titulo
`FunctionDeclaration`
` `
bnf
`function Identifier FormalParameterList FunctionBody`
` `
desc
`
`
` `
` `
topico
` `
titulo
`FunctionExpression`
` `
bnf
`function Identifier? FormalParameterList FunctionBody`
` `
desc
`
`
` `
` `
topico
` `
titulo
`FormalParameterList`
` `
bnf
`'(' [Identifier ( ',' Identifier)*] ')'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`FunctionBody`
` `
bnf
`'{' [SourceElement+] '}'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`Statement`
` `
bnf
`Block VariableStatement |
EmptyStatement | ExpressionStatement |
IfStatement |
IterationStatement ContinueStatement |
BreakStatement |
ReturnStatement | WithStatement |
LabelledStatement |
SwitchStatement ThrowStatement |
TryStatement | DebuggerStatement `
` `
desc
`
`
` `
` `
topico
` `
titulo
`Block`
` `
bnf
`'{' StatementList '}'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`StatementList`
` `
bnf
`[Statement+]`
` `
desc
`
`
` `
` `
topico
` `
titulo
`VariableStatement`
` `
bnf
`var Identifier ['=' AssignmentExpression] (',' Identifier ['=' AssignmentExpression])* ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`VariableDeclarationListNoIn`
` `
bnf
`Identifier ['=' AssignmentExpressionNoIn] (',' Identifier ['=' AssignmentExpressionNoIn])*`
` `
desc
`
`
` `
` `
topico
` `
titulo
`EmptyStatement`
` `
bnf
`';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`ExpressionStatement`
` `
bnf
`[lookahead 'nao pertence' '{''{'',' function'}'] Expression ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`IfStatement`
` `
bnf
`if '(' Expression ')' Statement [else Statement]`
` `
desc
`
`
` `
` `
topico
` `
titulo
`IterationStatement`
` `
bnf
`do Statement while '(' Expression ')' ';' | while '(' Expression ')' Statement |
for '(' (ExpressionNoIn? | var VariableDeclarationListNoIn) ';' Expression? ';' Expression? ')' Statement |
for '('(LeftHandSideExpression | var VariableDeclarationNoIn)in Expression ')' Statement`
` `
desc
`
`
` `
` `
topico
` `
titulo
`ContinueStatement`
` `
bnf
`continue [no LineTerminator here] Identifier? ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`BreakStatement`
` `
bnf
`break [no LineTerminator here] Identifier? ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`ReturnStatement`
` `
bnf
`return [no LineTerminator here] Expression? ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`WithStatement`
` `
bnf
`with '(' Expression ')' Statement`
` `
desc
`
`
` `
` `
topico
` `
titulo
`SwitchStatement`
` `
bnf
`switch '(' Expression ')' CaseBlock`
` `
desc
`
`
` `
` `
topico
` `
titulo
`CaseBlock`
` `
bnf
`'{' CaseClauses [DefaultClause CaseClauses] '}'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`CaseClauses`
` `
bnf
`'O' (('case' Expression ':')+ StatementList)+`
` `
desc
`
`
` `
` `
topico
` `
titulo
`DefaultClause`
` `
bnf
`default ':' StatementList`
` `
desc
`
`
` `
` `
topico
` `
titulo
`LabelledStatement`
` `
bnf
`Identifier ':' Statement`
` `
desc
`
`
` `
` `
topico
` `
titulo
`ThrowStatement`
` `
bnf
`throw [no LineTerminator here] Expression ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`TryStatement`
` `
bnf
`try Block (Catch | Finally | Catch Finally)`
` `
desc
`
`
` `
` `
topico
` `
titulo
`Catch`
` `
bnf
`catch'(' Identifier ')' Block`
` `
desc
`
`
` `
` `
topico
` `
titulo
`Finally`
` `
bnf
`finally Block`
` `
desc
`
`
` `
` `
topico
` `
titulo
`DebuggerStatement`
` `
bnf
`debugger ';'`
` `
desc
`
`
` `
` `
topico
` `
titulo
`AssignmentExpression`
` `
bnf
`[(LeftHandSideExpression AssignmentOperator)+] ConditionalExpression`
` `
desc
`
`
` `
` `
topico
` `
titulo
`AssignmentOperator`
` `
bnf
`'= *= /= %= += -= <<= >>= >>>= &= ^= |='`
` `
desc
`
`
` `
` `
topico
` `
titulo
`ConditionalExpression`
` `
bnf
`OperadorUnario? PostfixExpression { OperadorBinario OperadorUnario? PostfixExpression } O '?' AssignmentExpression ':' AssignmentExpression`
` `
desc
`
`
` `
` `
topico
` `
titulo
`PostfixExpression`
` `
bnf
`LeftHandSideExpression ["++"|"--"]`
` `
desc
`
`
` `
` `
topico
` `
titulo
`OperadorBinario`
` `
desc
`Operadores Binários com suas prioridades
< > <= >= instanceof in
== != === !==
|| && | ^ &
* / %
+ -
`
` `
` `
`