File: README.md

package info (click to toggle)
jflex 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 13,944 kB
  • sloc: java: 421,255; xml: 1,130; makefile: 123; lisp: 90; yacc: 65; sh: 13
file content (31 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
JFlex with Yacc
===============

This directory contains an interoperability example for BYacc/J and JFlex.
This example implements a small calculator.

## Build and run

Use the Makefile to generate the lexer and parser.

```
make

```

The example can then be started with

```
java Parser
```

## Files

* `calc.flex`
  JFlex specification for the lexical part of the arithmetic expressions.

* `calc.y`
  BYacc/J specification and main program for the calculator.


[byaccj]: http://byaccj.sourceforge.net/