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

ell
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

ELL

The English Language Language

slide-2
SLIDE 2

MOTIVATION

  • Our language provides core file manipulation
  • perations and storage structures, which allow us to

mine statistics between given documents, as well as

  • ther tasks related to document manipulation.
slide-3
SLIDE 3

ROLES

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

slide-4
SLIDE 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;

slide-5
SLIDE 5

PRIMITIVES, TYPES AND OPERATORS

Primitive

  • Int
  • Double
  • Boolean
  • Char

Other types

  • String
  • File_ptr
  • Array
  • Struct

Operators

  • +,-,*,/,==,!=,<,<=,>,>=
  • ,!
  • &&, ||
  • ++,--
slide-6
SLIDE 6

STRINGS AND BUILT IN FUNCTIONS

Other

calloc free print print_double print_char print_string print_all

  • pen

close read write

String string word = "hello world"; String Operations

strlen strcmp strcat strcpy strget

Word Operations

is_stop_word word_count string_at to_lower

slide-7
SLIDE 7

DATA STRUCTURES

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

slide-8
SLIDE 8

PROGRAM STRUCTURE

slide-9
SLIDE 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

slide-10
SLIDE 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

slide-11
SLIDE 11

DEMO

slide-12
SLIDE 12

Demos

  • 1. word_count.ell
  • 2. essay_topics.ell
  • 3. lcs.ell