isa_parser.py (6377:aac74ffc8ca2) | isa_parser.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. Assumes we're compiling in a subdirectory 39# of 'build' in the current tree. 40sys.path[0:0] = [os.environ['M5_PLY']] 41 | |
42from ply import lex 43from ply import yacc 44 45##################################################################### 46# 47# Lexer 48# 49# The PLY lexer module takes two things as input: --- 1979 unchanged lines hidden --- | 37from ply import lex 38from ply import yacc 39 40##################################################################### 41# 42# Lexer 43# 44# The PLY lexer module takes two things as input: --- 1979 unchanged lines hidden --- |