CHIL CSS HTML Integrated Language Gil Chen--Zion - gc2466 Ami - - PowerPoint PPT Presentation

chil
SMART_READER_LITE
LIVE PREVIEW

CHIL CSS HTML Integrated Language Gil Chen--Zion - gc2466 Ami - - PowerPoint PPT Presentation

CHIL CSS HTML Integrated Language Gil Chen--Zion - gc2466 Ami Kumar - ak3284 Annania Melaku - amm2324 Isaac White - iaw2105 Overview An Abstracted Mark-Up Language Bridges the gap between HTML and CSS Additional features


slide-1
SLIDE 1

CSS HTML Integrated Language

CHIL

Gil Chen--Zion - gc2466 Ami Kumar - ak3284 Annania Melaku - amm2324 Isaac White - iaw2105

slide-2
SLIDE 2

❑ An Abstracted Mark-Up Language ❑ Bridges the gap between HTML and CSS ❑ Additional features ❑ Looping ❑ Simultaneous declarations ❑ Structures & Styling ❑ Complex elements

Overview

slide-3
SLIDE 3

Language Structure

Scanner Parser Abstract Syntax Tree Symbol Table Interprete r Bytecode Final Output

slide-4
SLIDE 4

❑ Static Scoping ❑ Strongly typed ❑ Global & Local Variable Declaration ❑ Features are self-scoping ❑ Sequential Ordered Analysis

Details

slide-5
SLIDE 5

fn testFunc(string param) el someElement = { contents: param } rtn someElement endfn el x = testFunc("element 1") el y = testFunc("element 2") el z = testFunc("element 3") Page.add(x) Page.add(y) Page.add(z)

Sample Code

functions.ch

slide-6
SLIDE 6

int totalValue = 20 + 22 el theAnswer = { contents: totalValue, style: ${ css: "font-weight: bold; font-family: arial; font-size: 2rem; color: white; background-color: black; display: block; box- sizing: border-box; padding: .5rem; border: 1px dotted white; margin: 1rem;" } } Page.add(theAnswer)

arth1.ch

slide-7
SLIDE 7

❑ Scheduling & Time Management ❑ Laying out the Language ❑ Ocaml ❑ Goals & Deadlines ❑ Testing & Debugging

Lessons Learned

slide-8
SLIDE 8
  • Syntax Changes

\n

fn - endfn

while - endwhile

if - else - endif

styling and naming

  • Added Binary Operations

*=, /=, ++, --

squared (^^)

factorial ( ! )

power ( ~ )

  • Refactor Test cases and Makefile

What We Did

slide-9
SLIDE 9

Sample Code

fn build() int b b += 10 print(b) b -= 2 print(b) b /= 4 print(b) b *= 2 print(b) b = b ^^ print(b) b -= 14 print(b) b = b ~ 3 print(b) b = 3! print(b) endfn

EXAMPLE1 EXAMPLE 2: FIB

fn fib(x) if (x < 2) return 1 endif return fib(x-1) + fib(x-2) endfn fn build() print(fib(0)) print(fib(1)) print(fib(2)) print(fib(3)) print(fib(4)) print(fib(5)) endfn