Skip to content

Instantly share code, notes, and snippets.

include io.h
cr equ 0dh
lf equ 0ah
data segment
la db cr,lf,'Enter a',0
lb db cr,lf,'Enter b',0
l1 db cr,lf,'Enter x',0
ly db cr,lf,'Enter y',0
import java.io.*;
public class Identifier
{
public static void main(String [] args)throws IOException
{
String id;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a string: ");
@douglas-vaz
douglas-vaz / gist:3075892
Created July 9, 2012 11:19
Real Number DFA
import java.io.*;
public class Real
{
public static void main(String[] args)
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String in;
try{
System.out.println("Enter string");
in = br.readLine();
@douglas-vaz
douglas-vaz / evav_in.c
Created June 14, 2012 19:00
Infix to Postfix and evaluate
#include <stdio.h>
#include <stdlib.h>
struct Node{
int info;
struct Node *next;
};
typedef struct Node *nodeptr;
@douglas-vaz
douglas-vaz / stc.c
Created June 14, 2012 07:58 — forked from tanayseven/gist:2928879
Stack
#include<stdio.h>
#include<stdlib.h>
struct stack
{
int info;
struct stack *next;
};
typedef struct stack *s;
@douglas-vaz
douglas-vaz / palindrome.c
Created June 12, 2012 17:59
Palindrome using stack and queue
//Palindrome
#include "stdio.h"
#include "stdlib.h"
struct Node{
char info;
struct Node *next;
};