Coder Social home page Coder Social logo

restlenguajes's Introduction

Rest Lenguajes

UdeA Información Principal

Servicio Rest que permite recibir Automatas y realilzarles las siguientes funciones:

  • Determinar si son o no deterministicos
  • Simplificar automatas
  • Probar una hilera

Desplegado en Heroku: https://rest-teoria.herokuapp.com/

Rutas

###POST####

  • /process: Recibe un objeto JSON con la siguiente estructura

method: 'POST', url: 'https://rest-teoria.herokuapp.com/process', headers: { 'Content-Type': 'application/json' }, data: {"datos":datos, "simbolos":simbolos } };

Donde datos contiene las filas del autómata, con sus estados de aceptación y símbolos contiene los símbolos del autómata. Y retorna un objeto con la misma estructura además de la propiedad automata, la cual es un booleano que permite saber si el autómata procesado era determinista o no.

“datos”: [{“data”:[{“es”:”A”},{“es”:”B”},{“es”:”A”}],”acept”:false},{“data”:[{“es”:”B”},{“es”:”A”},{“es”:”B”}],”acept”:true}],” simbolos”:[{“sim”:”0”},{“sim”:”1”}],”

Respuesta:

{"datos": [{"data":[{"es":"A"},{"es":"B"},{"es":"A"}],"acept":false},{"data":[{"es":"B"},{"es":"A"},{"es":"B"}],"acept":true}]," simbolos":[{"sim":"0"},{"sim":"1"}]," automata":false}

  • /try: Recibe un String y comprueba su estado de aceptación según el ultimo autómata que fue procesado.

method: 'POST', url: 'https://rest-teoria.herokuapp.com/try', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, data: $.param({name: hileraAProbar }) };

Donde hileraAProbar es el dato que recibe. Y retorna:

data:true || data :false

Integrantes

  • Manuel Ochoa
  • Santiago Sanmartin

##Practica #1: Teoría de Lenguajes## ###Semestre: 2016-2###

Requerimientos

  • Spring Framework
  • Java
  • Maven

restlenguajes's People

Contributors

mgochoa avatar saureth avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.