ell
play

ELL The English Language Language MOTIVATION Our language - PowerPoint PPT Presentation

ELL The English Language Language MOTIVATION Our language provides core file manipulation operations and storage structures, which allow us to mine statistics between given documents, as well as other tasks related to document


  1. ELL The English Language Language

  2. MOTIVATION ● Our language provides core file manipulation operations and storage structures, which allow us to mine statistics between given documents, as well as other tasks related to document manipulation.

  3. ROLES Manager Emily Bau Nivita Arora Language Guru System Architect Candace Johnson Michele Lin System Architect Tester Rabia Akhtar

  4. DECLARATION Simple Declaration int a; Global Declaration with Initialization - Literals only string b = “hello”; bool c = true; Local Declaration with Initialization - Literals and expressions float d = 1.2; float e = d + 2;

  5. PRIMITIVES, TYPES AND OPERATORS Primitive Other types Operators ● Int ● String ● +,-,*,/,==,!=,<,<=,>,>= ● Double ● File_ptr ● -,! ● Boolean ● Array ● &&, || ● Char ● Struct ● ++,--

  6. STRINGS AND BUILT IN FUNCTIONS String String Operations Other strlen calloc string word = "hello world"; strcmp free strcat strcpy print strget print_double print_char Word Operations print_string print_all is_stop_word word_count open string_at close to_lower read write

  7. DATA STRUCTURES Arrays: Struct: Accepts int, float and string types Creation: Creation: struct Doc { string[] s string File_name; Initialization: string[] Content; s = [“emily, “nivita”, “ michele”]; int Word_count; Index Assign: }; s[3] = [“rabia”]; Access an index: Initialization: print(s{|0|}; /* prints emily */ struct Doc document; Index Assign: document.File_name = "hello.txt"; Access an index: print_all(document.File_name);

  8. PROGRAM STRUCTURE

  9. TESTING & COMPILING ● Our testing suite is built on top of the MicroC ● We added additional tests for our new features ● Three demo codes that test integration of features $ make $ ./run_english <file_name> $ make $ ./testall.sh

  10. PROJECT TIMELINE 1. Hello World 2. Floats and File I/O 3. Basic integer arrays 4. Structs 5. Strings 6. Variable initialization 7. Built-in and linked functions 8. String and float arrays 9. Characters 10. Demo code 11. Report

  11. DEMO

  12. Demos 1. word_count.ell 2. essay_topics.ell 3. lcs.ell

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