about summary refs log tree commit diff stats
path: root/js/puzzle-dungeon/parser.js
blob: cbf9983ba2b829657b3c16dfe7fc514da6aeec1c (plain) (blame)
1
2
3
4
5
6
7
8
import { handleCommand } from './commandHandler.js';

export function parseCommands(commands) {
    const commandList = commands.trim().split('\n');
    commandList.forEach(command => {
        handleCommand(command.trim().toLowerCase());
    });
}