chil
play

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


  1. CHIL CSS HTML Integrated Language Gil Chen--Zion - gc2466 Ami Kumar - ak3284 Annania Melaku - amm2324 Isaac White - iaw2105

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

  3. Language Structure Abstract Symbol Interprete Final Syntax Scanner Parser Bytecode Table r Output Tree

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

  5. Sample Code fn testFunc(string param) el someElement = { contents: param } rtn someElement functions.ch 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)

  6. int totalValue = 20 + 22 el theAnswer = { contents: totalValue, arth1.ch 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)

  7. Lessons Learned ❑ Scheduling & Time Management ❑ Laying out the Language ❑ Ocaml ❑ Goals & Deadlines ❑ Testing & Debugging

  8. What We Did Syntax Changes ● \n ○ fn - endfn ○ while - endwhile ○ if - else - endif ○ styling and naming ○ Added Binary Operations ● *=, /=, ++, -- ○ squared (^^) ○ factorial ( ! ) ○ power ( ~ ) ○ Refactor Test cases and Makefile ●

  9. EXAMPLE1 Sample Code fn build() int b b += 10 EXAMPLE 2: FIB print(b) b -= 2 print(b) fn fib(x) b /= 4 if (x < 2) print(b) return 1 b *= 2 endif print(b) return fib(x-1) + fib(x-2) b = b ^^ endfn print(b) b -= 14 fn build() print(b) print(fib(0)) b = b ~ 3 print(fib(1)) print(b) print(fib(2)) b = 3! print(fib(3)) print(b) print(fib(4)) endfn print(fib(5)) endfn

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend