eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptCompilerWithBreakpointSupport':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: JavaScriptCompilerWithBreakpointSupport


Inheritance:

   Object
   |
   +--Scanner
      |
      +--JavaScriptScanner
         |
         +--JavaScriptParser
            |
            +--JavaScriptCompiler
               |
               +--JavaScriptCompilerWithBreakpointSupport

Package:
stx:libjavascript
Category:
Languages-JavaScript-Compiling & Parsing
Version:
rev: 1.2 date: 2014/05/13 14:44:01
user: cg
file: JavaScriptCompilerWithBreakpointSupport.st directory: libjavascript
module: stx stc-classLibrary: libjavascript
Author:
code stolen from BytecodeCompilerWithBreakpointSupport

Description:


I'm an experimental compiler class that supports breakpoints. 
Once tested, the code might be merged to JavaScriptCompiler.


[instance variables:]

[class variables:]


Related information:



Instance protocol:

adding breakpoint
o  possiblyWrapABreakPointAround: aBlock
refactored Jan's original code; changed to not wrap an already wrapped expression

o  possiblyWrapABreakPointBefore: aBlock
refactored Jan's original code; changed to not wrap an already wrapped expression

o  removeMissedBreakpointsBefore: aPosition

parsing-expressions
o  addExpression
(comment from inherited method)
addExpr -> mulExpr addOp mulExpr

o  block

o  expression
(comment from inherited method)
expression -> commaExpression

o  primaryExpression
(comment from inherited method)
primaryExpr ->
'(' expr ')'
'(' id1,...idN ')' '=>' '{' function-body '}'
| constant
| 'this'
| 'super'
| variable
| 'new' class
| 'new' funcOrClass '(' dim ')'
| 'function' '(' argList ')' '{' statements '}'

o  unaryExpression
(comment from inherited method)
unaryExpr -> ! unaryExpression
| ~ unaryExpression
| - unaryExpression
| ++unaryExpression
| --unaryExpression
| typeof(primaryExpression)
| primaryExpression
| primaryExpression--
| primaryExpression++

parsing-statements
o  statement
(comment from inherited method)
statement -> expression ;

private
o  breakpoints: aCollection

o  methodClass

o  notifying: anObject
(comment from inherited method)
set the requestor to be notified



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 10:28:34 GMT