CAS - PowerPoint PPT Presentation

About This Presentation
Title:

CAS

Description:

Support for almost every method is available in caScript. ... { Collections.shuffle(maSet); int count = 0; for (DSMicroarray array : maSet) ... – PowerPoint PPT presentation

Number of Views:14
Avg rating:3.0/5.0
Slides: 9
Provided by: BB160
Category:
Tags: cas | shuffle

less

Transcript and Presenter's Notes

Title: CAS


1
CAS
  • AKA caScript

2
Core features of CAS
  • Component Manipulation
  • Data Structure Manipulation
  • Variable Management
  • Error System
  • The editor

3
Component Manipulation
  • Support for almost every method is available in
    caScript.
  • Support is based on what is being passed between
    methods.
  • Support is primarily based on the existence of
    annotation keyword _at_Script.
  • The language can be modified to support different
    kinds of parameters.

4
Example
  • _at_Script public void prune(DSDataSet data, int
    size)
  • DSMicroarraySetltDSMicroarraygt maSet
    null
  • if (data instanceof DSMicroarraySet)
  • maSet (DSMicroarraySetltDSMicroarray
    gt)data
  • else
  • return
  • if (maSet.size() gt size)
  • Collections.shuffle(maSet)
  • int count 0
  • for (DSMicroarray array maSet)
  • array.setSerial(count)
  • int initialSize maSet.size()
  • for (int i initialSize - 1 i gt
    size i--)
  • maSet.remove(i)
  • publishFilteringEvent(new
    FilteringEvent(maSet, maSet, getLabel()
    "_at_Script prune size " size))

5
Data Structure Manipulation
  • caScript supports entire Bison ontology of data
    structures through interfaces.
  • Data Structures work like JAVA objects.

6
Error System
  • The caScript error system spans from its own
    errors (lexing, parsing, interpretation, bad
    code) to reporting difficulties with geWorkBench.
  • The error system can always be more robust and
    useful.
  • Some errors are badly reported due to ANTLR.

7
ANTLR
  • ANother Tool for Language Recognition
  • www.antlr.org
  • Basically a lexical analysis, syntactic analysis,
    and semantic analysis generator
  • New edition promises to be more robust
  • Current edition still has some issues (non LL(),
    bad error generation and recovery)

8
CAS editor
  • The editor displays what modules are supported.
  • The editor displays what methods of the module
    are supported.
  • Double-clicking module names paste a module
    variable declaration onto the editor.
  • Double-clicking method names paste method calls
    onto the editor.
  • Single-clicking module names display available
    methods.
  • Single-clicking method names display the javadoc
    for the method.
Write a Comment
User Comments (0)
About PowerShow.com