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.8 date: 2020/01/30 14:00:37
user: stefan
file: JavaScriptCompilerWithBreakpointSupport.st directory: libjavascript
module: stx stc-classLibrary: libjavascript

Description:


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


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2013 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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 ')' '=>' lambdaFunctionBody
| '(' ')' '=>' lambdaFunctionBody
| variable '=>' lambdaFunctionBody
| constant
| 'this'
| 'super'
| variable
| 'new' class
| 'new' funcOrClass '(' dim ')'
| 'function' '(' argList ')' '{' statements '}'

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

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 02 May 2024 14:42:15 GMT