micro_asm.py (5594:7ef21c6c76bb) | micro_asm.py (6655:380a32b43336) |
---|---|
1# Copyright (c) 2003-2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 20 unchanged lines hidden (view full) --- 29import os 30import sys 31import re 32import string 33import traceback 34# get type names 35from types import * 36 | 1# Copyright (c) 2003-2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 20 unchanged lines hidden (view full) --- 29import os 30import sys 31import re 32import string 33import traceback 34# get type names 35from types import * 36 |
37# Prepend the directory where the PLY lex & yacc modules are found 38# to the search path. 39sys.path[0:0] = [os.environ['M5_PLY']] 40 | |
41from ply import lex 42from ply import yacc 43 44########################################################################## 45# 46# Base classes for use outside of the assembler 47# 48########################################################################## --- 456 unchanged lines hidden --- | 37from ply import lex 38from ply import yacc 39 40########################################################################## 41# 42# Base classes for use outside of the assembler 43# 44########################################################################## --- 456 unchanged lines hidden --- |