Vcsn
2.4
Be Rational
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
driver.hh
Go to the documentation of this file.
1
#pragma once
2
3
#include <
vcsn/core/fwd.hh
>
4
#include <
vcsn/core/rat/fwd.hh
>
5
#include <
vcsn/algos/edit-automaton.hh
>
6
#include <
vcsn/misc/export.hh
>
7
8
#include <
lib/vcsn/dot/fwd.hh
>
9
#include <
lib/vcsn/rat/location.hh
>
10
11
namespace
vcsn
12
{
13
namespace
detail
14
{
15
namespace
dot
16
{
17
using
location_t
=
vcsn::rat::location
;
18
20
class
LIBVCSN_API
driver
21
{
22
public
:
23
driver
();
24
~
driver
();
25
27
dyn::automaton
parse(std::istream& is,
28
const
location_t
& l =
location_t
{});
29
31
void
error(
const
location_t
& l,
const
std::string& m);
33
void
invalid(
const
location_t
& l,
const
std::string& s);
34
36
std::string
errors
;
38
std::unique_ptr<yyFlexLexer>
scanner_
;
39
40
private
:
43
void
setup_(
const
location_t
& l,
const
std::string&
ctx
);
44
46
location_t
location_
;
48
std::shared_ptr<vcsn::automaton_editor>
edit_
;
49
friend
class
parser
;
50
};
51
}
52
}
53
}
vcsn::detail::dot::driver::edit_
std::shared_ptr< vcsn::automaton_editor > edit_
An automaton editor that stores the one being built.
Definition:
driver.hh:48
vcsn::detail::ctx
return ctx
Definition:
project-context.hh:41
fwd.hh
vcsn::detail::dot::driver::errors
std::string errors
The error messages.
Definition:
driver.hh:36
vcsn
Definition:
a-star.hh:8
LIBVCSN_API
#define LIBVCSN_API
Definition:
export.hh:8
vcsn::detail::dot::driver::location_
location_t location_
The inital location.
Definition:
driver.hh:46
export.hh
vcsn::detail::dot::driver::scanner_
std::unique_ptr< yyFlexLexer > scanner_
The scanner.
Definition:
driver.hh:38
fwd.hh
vcsn::detail::dot::parser
A Bison parser.
Definition:
parse.hh:304
fwd.hh
vcsn::dot
std::ostream & dot(const Aut &aut, std::ostream &out=std::cout, format fmt={}, bool mathjax=false)
Print an automaton in Graphviz's Dot format.
Definition:
dot.hh:395
vcsn::dyn::automaton
A dyn automaton.
Definition:
automaton.hh:17
edit-automaton.hh
location.hh
Define the vcsn::rat::location class.
vcsn::rat::location
Abstract a location.
Definition:
location.hh:47
vcsn::detail::dot::driver
State and public interface for Dot parsing.
Definition:
driver.hh:20
vcsn::detail::dot::location
vcsn::rat::location location
Definition:
scan.hh:17
lib
vcsn
dot
driver.hh
Generated by
1.8.8