source: proto/parabix2/error_tracker.py @ 4021

Last change on this file since 4021 was 1959, checked in by lindanl, 7 years ago

Add prototype that can run under python and is compilable as well

File size: 260 bytes
Line 
1#
2# error_tracker.py
3#
4# Bitstream Utilities
5#
6# This is Python implementations of reporting errors.
7#
8# Dan Lin
9# March 24, 2012
10#
11import pablo
12
13def NoteError(s, lex_error):
14        pos = pablo.count_leading_zeroes(lex_error)
15        print s + " at position " + str(pos)
16
17
Note: See TracBrowser for help on using the repository browser.