cirilisp/lexer.h

21 lines
418 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
typedef enum
{
undefined,
number,
symbol,
parenthesis
} tokenType ;
typedef struct _Token
{
tokenType type;
char *lexeme;
struct _Token *next;
} token;
/* функција lexLine као аргумент добија ред са стандардног улаза, а као излаз
враћа лексичке елементе у повезаној листи */
token *lexLine(char *input);