Skip to content

Commit

Permalink
Generated source with updated format
Browse files Browse the repository at this point in the history
  • Loading branch information
jsinger67 committed Apr 25, 2024
1 parent 8f58e28 commit 7d18b38
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion crates/parol-ls/parol_ls-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start ParolLs
%title "Parol grammar"
%comment "Parol's own grammar enhanced with comment processing"
%grammar_type 'll(k)'
%line_comment "//"
%block_comment "/\*" "\*/"
%user_type OwnedToken = crate::parol_ls_grammar::OwnedToken
Expand Down
4 changes: 2 additions & 2 deletions crates/parol/src/parser/parol_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,9 +1034,9 @@ where
PRODUCTIONS,
TERMINAL_NAMES,
NON_TERMINALS,
); // Initialize wrapper
);
// Initialize wrapper
let mut user_actions = ParolGrammarAuto::new(user_actions);

llk_parser.parse(
TokenStream::new(input, file_name, &TOKENIZERS, MAX_K).unwrap(),
&mut user_actions,
Expand Down
1 change: 0 additions & 1 deletion examples/basic_interpreter/basic-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start Basic
%title "Basic grammar"
%comment "Subset of C64 Basic used in tutorial for parser generator `parol`"
%grammar_type 'll(k)'
%auto_newline_off
%user_type BasicLineNumber = crate::basic_grammar::BasicLineNumber
%user_type BasicNumber = crate::basic_grammar::BasicNumber
Expand Down
4 changes: 2 additions & 2 deletions examples/calc_auto/calc_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,9 @@ where
PRODUCTIONS,
TERMINAL_NAMES,
NON_TERMINALS,
); // Initialize wrapper
);
// Initialize wrapper
let mut user_actions = CalcGrammarAuto::new(user_actions);

llk_parser.parse(
TokenStream::new(input, file_name, &TOKENIZERS, MAX_K).unwrap(),
&mut user_actions,
Expand Down
1 change: 0 additions & 1 deletion examples/json_parser/json-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start Json
%title "Json grammar"
%comment "Derived from http://Json.org for parol by Joerg Singer."
%grammar_type 'll(k)'

%%

Expand Down
1 change: 0 additions & 1 deletion examples/json_parser_auto/json-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start Json
%title "Json grammar"
%comment "Derived from http://Json.org for parol by Joerg Singer."
%grammar_type 'll(k)'

%%

Expand Down
4 changes: 2 additions & 2 deletions examples/list_auto/list_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ where
PRODUCTIONS,
TERMINAL_NAMES,
NON_TERMINALS,
); // Initialize wrapper
);
// Initialize wrapper
let mut user_actions = ListGrammarAuto::new(user_actions);

llk_parser.parse(
TokenStream::new(input, file_name, &TOKENIZERS, MAX_K).unwrap(),
&mut user_actions,
Expand Down
1 change: 0 additions & 1 deletion examples/oberon2/oberon2-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start Oberon2
%title "Oberon2 grammar"
%comment "Adapted from https://cseweb.ucsd.edu/~wgg/CSE131B/oberon2.htm for `parol`"
%grammar_type 'll(k)'
%block_comment "\(\*" "\*\)"

%%
Expand Down
1 change: 0 additions & 1 deletion examples/toml/parol_toml-exp.par
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%start ParolToml
%title "TOML Grammar"
%comment "Adapted from https://raw.githubusercontent.com/toml-lang/toml/1.0.0/toml.abnf"
%grammar_type 'll(k)'
%line_comment "#"

%scanner Esc { %auto_newline_off %auto_ws_off }
Expand Down

0 comments on commit 7d18b38

Please sign in to comment.