Mercurial > lcfOS
comparison python/ks/parser.py @ 182:e9b27f7193e3
Replace clear function by function also supported in python 3.2
author | Windel Bouwman |
---|---|
date | Sat, 18 May 2013 18:24:42 +0200 |
parents | 91af0e40f868 |
children | 4fd075e8259c |
comparison
equal
deleted
inserted
replaced
181:216da5e46efc | 182:e9b27f7193e3 |
---|---|
1 from .symboltable import SymbolTable | 1 from .symboltable import SymbolTable |
2 from .nodes import * | 2 from .nodes import * |
3 from ...core.errors import CompilerException, Error | 3 from ...core.errors import CompilerException, Error |
4 from .builtin import * | 4 from .builtin import * |
5 #from . import assembler | |
6 from .lexer import tokenize | 5 from .lexer import tokenize |
7 | 6 |
8 class KsParser: | 7 class KsParser: |
9 """ This module parses source code into an abstract syntax tree (AST) """ | 8 """ This module parses source code into an abstract syntax tree (AST) """ |
10 def __init__(self, source): | 9 def __init__(self, source): |