Skip to content

Instantly share code, notes, and snippets.

View seth2810's full-sized avatar
🏄‍♂️
Gliding through the code

Roman Gafurov seth2810

🏄‍♂️
Gliding through the code
View GitHub Profile
@CarmineM74
CarmineM74 / Parser
Created October 10, 2011 13:46
Exercise 3-8
%% Evaluating 3-8: Evaluating and Compiling Expressions
-module (excap38).
-export ([parse/1]).
%% Input: ((2+3)-4)
%% Output: {minus, {plus, {num, 2}, {num,3}}, {num, 4}
parse(Stack, []) ->
hd(Stack);