graph application language
play

Graph Application Language (GAL) The Team Anton: GAL language Guru - PowerPoint PPT Presentation

Graph Application Language (GAL) The Team Anton: GAL language Guru Andrew: Test Master Donovan: Manager Macrina: Standard Library Creator The Aim Creating a programming language that makes graph programming a piece of cake. Compiler


  1. Graph Application Language (GAL)

  2. The Team Anton: GAL language Guru Andrew: Test Master Donovan: Manager Macrina: Standard Library Creator

  3. The Aim Creating a programming language that makes graph programming a piece of cake.

  4. Compiler Architecture

  5. Language Features /*Types*/ /*Operators*/ + - * / = > < >= <= == int != ! |node/edge| string node /*Control Flow*/ edge while(x==x){ ilist print_str(“HELLO”); slist } nlist elist /*Declaring a Function*/ int foo(int bar){ bar = bar+1; Return bar; }

  6. Language Features List of Built-Ins for I/O List of Built-Ins for Graph: List of Built-Ins for Edges: and others: + length() + source() + print_int + next() + dest() + print_str + pop() + weight() + print_endline + peek() + streq + add()

  7. The First Program- Hello World /*Things written in here are comments and they are multi line compatible*/ int main(){ string x = “HELLO WORLD!”; print_str(x); /*Defining a Graph using node*/ node n1 = |”A”:2,”B”,3,”C”,4,”D”|; /*Adds an edge to the existing graph and updates it*/ n1 = eadd(|”B”,5,”E”|,n1); /*standard library function to print the list of edges*/ print_elist(n1); } }

  8. Test Suite $ ./testall.sh -n -n fail_assignment_edge1... test_assignment_list1... OK OK -n -n test_boolean_false... fail_assignment_edge2... OK OK -n test_boolean_true... -n OK fail_assignment_int_to_s -n test_create_edge... tring... OK OK -n -n test_get_heaviest_graph_ fail_assignment_string_t edge... o_int... OK OK

  9. DEMO

  10. Lessons Learned + Programming in pairs helps to weed out bugs in more than half the time. + Git commit, Git add and Git push all day + Use Ubuntu + OCaml’s pattern matching is a god send.

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